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:
Patrick Ohly 2016-08-26 11:20:30 -07:00
parent 2b4b93f1ab
commit f7dbb2ed72
1 changed files with 1 additions and 1 deletions

View File

@ -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..."""