Skip to content

Commit

Permalink
test: test name is the last elem, not second
Browse files Browse the repository at this point in the history
When a test requires node to have parameters passed (--expose-gc) the
test name will be the last element in the command array, not the second.
  • Loading branch information
tjfontaine authored and bnoordhuis committed Mar 25, 2013
1 parent 9352c19 commit fb6dd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def AboutToRun(self, case):

def HasRun(self, output):
self._done += 1
command = basename(output.command[1])
command = basename(output.command[-1])
if output.UnexpectedOutput():
print 'not ok %i - %s' % (self._done, command)
for l in output.output.stderr.splitlines():
Expand Down

0 comments on commit fb6dd0c

Please sign in to comment.