From: Michael Goldish <[email protected]> Use kvm_utils.format_str_for_message() to format the output of migration_test_command when printing it.
Signed-off-by: Michael Goldish <[email protected]> diff --git a/client/tests/kvm_runtest_2/kvm_tests.py b/client/tests/kvm_runtest_2/kvm_tests.py index 7349524..950115d 100644 --- a/client/tests/kvm_runtest_2/kvm_tests.py +++ b/client/tests/kvm_runtest_2/kvm_tests.py @@ -164,8 +164,8 @@ def run_migration(test, params, env): if output != reference_output: kvm_log.info("Command output before migration differs from command output after migration") kvm_log.info("Command: %s" % params.get("migration_test_command")) - kvm_log.info("Output before: %s" % reference_output) - kvm_log.info("Output after: %s" % output) + kvm_log.info("Output before:" + kvm_utils.format_str_for_message(reference_output)) + kvm_log.info("Output after:" + kvm_utils.format_str_for_message(output)) raise error.TestFail, "Command produced different output before and after migration" -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
