[kmf-system-test] Customizable print of KMS log when tests fail

Change-Id: I213f391a059def307adad6823cbad08bfb740759