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.
pull/24507/merge
Timothy J Fontaine 2013-03-25 16:16:44 -07:00 committed by Ben Noordhuis
parent 9352c19885
commit fb6dd0c0b5
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class TapProgressIndicator(SimpleProgressIndicator):
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():