git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6379136
)
fix error checking bug
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 23 Jun 2008 17:18:40 +0000
(17:18 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 23 Jun 2008 17:18:40 +0000
(17:18 +0000)
qaapi/qa/utils.py
patch
|
blob
|
history
diff --git
a/qaapi/qa/utils.py
b/qaapi/qa/utils.py
index
a7718e4
..
871a54f
100644
(file)
--- 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)