Skip to content

Commit ac004b8

Browse files
thefourtheyeFishrock123
authored andcommitted
tools: remove hyphen in TAP result
As it is, the TAP result shows an extra hyphen in front of test names. Sample: ci.nodejs.org/job/node-test-commit-osx/nodes=osx1010/454/tapResults/ This patch removes the extra hyphen. PR-URL: #2718 Reviewed-By: Johan Bergström <[email protected]>
1 parent b0df227 commit ac004b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def HasRun(self, output):
259259
self._done += 1
260260
command = basename(output.command[-1])
261261
if output.UnexpectedOutput():
262-
status_line = 'not ok %i - %s' % (self._done, command)
262+
status_line = 'not ok %i %s' % (self._done, command)
263263
if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE:
264264
status_line = status_line + ' # TODO : Fix flaky test'
265265
logger.info(status_line)
@@ -271,9 +271,9 @@ def HasRun(self, output):
271271
skip = skip_regex.search(output.output.stdout)
272272
if skip:
273273
logger.info(
274-
'ok %i - %s # skip %s' % (self._done, command, skip.group(1)))
274+
'ok %i %s # skip %s' % (self._done, command, skip.group(1)))
275275
else:
276-
status_line = 'ok %i - %s' % (self._done, command)
276+
status_line = 'ok %i %s' % (self._done, command)
277277
if FLAKY in output.test.outcomes:
278278
status_line = status_line + ' # TODO : Fix flaky test'
279279
logger.info(status_line)

0 commit comments

Comments
 (0)