Permalink
Browse files

test: test name is the last elem, not second

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...
1 parent 9352c19 commit fb6dd0c0b5a9705d691054449e4beb4cf7a73ea1 @tjfontaine tjfontaine committed with bnoordhuis Mar 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/test.py
View
@@ -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():

0 comments on commit fb6dd0c

Please sign in to comment.