runtests.py: better logging of failed command
When execution of a command fails, then printing the actual string passed to system() is more readable and accurate than the original array.
This commit is contained in:
parent
2b4b93f1ab
commit
f7dbb2ed72
|
@ -483,7 +483,7 @@ class Context:
|
|||
sys.stdout.flush()
|
||||
result = os.system(cmdstr)
|
||||
if result != 0:
|
||||
raise Exception("%s: failed (return code %d)" % (cmd, result>>8))
|
||||
raise Exception("%s: failed (return code %d)" % (cmdstr, result>>8))
|
||||
|
||||
def add(self, action):
|
||||
"""Add an action for later execution. Order is important, fifo..."""
|
||||
|
|
Loading…
Reference in New Issue