[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][XM-TEST] Minor fix for test reporting


  • To: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Dan Smith <danms@xxxxxxxxxx>
  • Date: Fri, 02 Dec 2005 10:09:12 -0800
  • Delivery-date: Fri, 02 Dec 2005 18:08:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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 dan@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# 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.
Signed-off-by: Dan Smith <danms@xxxxxxxxxx>

diff -r d4ab8e46136c -r d9f580a57701 tools/xm-test/lib/XmTestLib/Test.py
--- a/tools/xm-test/lib/XmTestLib/Test.py       Fri Dec  2 12:27:39 2005
+++ b/tools/xm-test/lib/XmTestLib/Test.py       Fri Dec  2 18:12:36 2005
@@ -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):
-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.