X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=qaapi%2Fqa%2Futils.py;h=871a54fb75e9d3d1e4cf94c0f551acc1b069ee1c;hb=b369f84c48ede66358277437b069d72e05063a06;hp=a7718e4d333746163c43966cbce20168593f4467;hpb=6379136b84bb03b4a36212c97a6e5058f1d02ee0;p=tests.git diff --git a/qaapi/qa/utils.py b/qaapi/qa/utils.py index a7718e4..871a54f 100644 --- a/qaapi/qa/utils.py +++ b/qaapi/qa/utils.py @@ -43,7 +43,7 @@ def commands(command, fatal = True, verbose = False, logfile = Logfile('/var/log (status, output) = getstatusoutput(command) print >> logfile, "+ "+command print >> logfile, output.strip() - if fatal and status == 0 and status == 256 and output: + if fatal and status == 256 and output: raise Exception, "%(command)s Failed:\n%(output)s" % locals() return (status, output)