From: Timothy J Fontaine Date: Mon, 25 Mar 2013 23:16:44 +0000 (-0700) Subject: test: test name is the last elem, not second X-Git-Tag: v0.10.2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb6dd0c0b5a9705d691054449e4beb4cf7a73ea1;p=platform%2Fupstream%2Fnodejs.git 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. --- diff --git a/tools/test.py b/tools/test.py index 140358e..90c79bc 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():