test: test name is the last elem, not second
authorTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 25 Mar 2013 23:16:44 +0000 (16:16 -0700)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 25 Mar 2013 23:21:41 +0000 (00:21 +0100)
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.

tools/test.py

index 140358e..90c79bc 100755 (executable)
@@ -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():