Minor fix for test reporting
PATCH 1/1 Minor fix for test reporting
This patch makes the FAIL() and SKIP() routines print out a newline before the REASON: line so that the reporting scripts can pick out the reason even if a domain prints a non-newline-terminated line.
# HG changeset patch
# User [email protected]
# Node ID d9f580a577017340e95ef46b8b265960a619f81f
# Parent d4ab8e46136ccb64a75dbdb6e84126d6a9552ca4
Output an explicit newline before the "REASON:" string so the report script can find it, even when a domain outputs a non-newline-terminated line.
tools/xm-test/lib/XmTestLib/Test.py +2 -2
@@ -131,11 +131,11 @@ FAIL("Could not become a non-root user") def FAIL(reason): - print "REASON: %s" % reason + print "\nREASON: %s" % reason sys.exit(TEST_FAIL) def SKIP(reason): - print "REASON: %s" % reason + print "\nREASON: %s" % reason sys.exit(TEST_SKIP) def saveLog(logText, filename=None):
Signature · 5 lines
-- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ewan Mellor
AppliedQuoted 4 lines · Dan Smith
This patch makes the
FAIL()andSKIP()routines print out a newline before the REASON: line so that the reporting scripts can pick out the reason even if a domain prints a non-newline-terminated line.
Applied, thank you.
Ewan.