Skip to contentSkip to conversation

Minor fix for test reporting

PATCH Applied Dan Smith 2 participants 2 messages Dec 2, 2005 – Dec 5, 2005

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

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
diff -r d4ab8e46136c -r d9f580a57701 tools/xm-test/lib/XmTestLib/Test.py
@@ -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

Applied
#1 lore raw
Quoted 4 lines · Dan Smith

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.

Applied, thank you.

Ewan.