summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-03-25 16:16:44 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-26 00:21:41 +0100
commitfb6dd0c0b5a9705d691054449e4beb4cf7a73ea1 (patch)
tree96a0c5bcb611f2af22ee3084b1e5b1491c4d5755
parent9352c1988574cbbc8649115007200315d8f79578 (diff)
downloadnode-fb6dd0c0b5a9705d691054449e4beb4cf7a73ea1.tar.gz
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.
-rwxr-xr-xtools/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test.py b/tools/test.py
index 140358e4c..90c79bcb3 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -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():