ia64/xen-unstable

changeset 9431:f3943890794a

Use *args inside FAIL and SKIP so that it is possible to call these functions
with multiple arguments, printf style. This is already being done in some
cases (causing an exception of course).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Mar 23 14:34:35 2006 +0100 (2006-03-23)
parents 40e3df4cffe4
children bb8a5d7e72a2 7bb0bb070d75
files tools/xm-test/lib/XmTestLib/Test.py
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/Test.py	Thu Mar 23 14:32:15 2006 +0100
     1.2 +++ b/tools/xm-test/lib/XmTestLib/Test.py	Thu Mar 23 14:34:35 2006 +0100
     1.3 @@ -131,12 +131,12 @@ def becomeNonRoot():
     1.4          if os.geteuid() == 0:
     1.5              FAIL("Could not become a non-root user")
     1.6  
     1.7 -def FAIL(reason):
     1.8 -    print "\nREASON: %s" % reason
     1.9 +def FAIL(format, *args):
    1.10 +    print "\nREASON:", (format % args)
    1.11      sys.exit(TEST_FAIL)
    1.12  
    1.13 -def SKIP(reason):
    1.14 -    print "\nREASON: %s" % reason
    1.15 +def SKIP(format, *args):
    1.16 +    print "\nREASON:", (format % args)
    1.17      sys.exit(TEST_SKIP)
    1.18  
    1.19  def saveLog(logText, filename=None):