From: Dan Smith Subject: [PATCH][XM-TEST] Minor fix for test reporting Date: Fri, 02 Dec 2005 10:09:12 -0800 Message-ID: <87u0drcqwn.fsf@theine.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Developers List-Id: xen-devel@lists.xenproject.org --=-=-= 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=reason_fix.patch # HG changeset patch # User dan@guaranine.beaverton.ibm.com # 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 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@us.ibm.com --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-=-=--