From ef8302935654271e32ad95932d173bd9fb07c516 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Mon, 7 Sep 2015 11:54:12 +0530 Subject: [PATCH] tools: remove hyphen in TAP result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/2718 Reviewed-By: Johan Bergström --- tools/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test.py b/tools/test.py index 27a06761a1c8f6..0e7929ddfc8305 100755 --- a/tools/test.py +++ b/tools/test.py @@ -259,7 +259,7 @@ def HasRun(self, output): self._done += 1 command = basename(output.command[-1]) if output.UnexpectedOutput(): - status_line = 'not ok %i - %s' % (self._done, command) + status_line = 'not ok %i %s' % (self._done, command) if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE: status_line = status_line + ' # TODO : Fix flaky test' logger.info(status_line) @@ -271,9 +271,9 @@ def HasRun(self, output): skip = skip_regex.search(output.output.stdout) if skip: logger.info( - 'ok %i - %s # skip %s' % (self._done, command, skip.group(1))) + 'ok %i %s # skip %s' % (self._done, command, skip.group(1))) else: - status_line = 'ok %i - %s' % (self._done, command) + status_line = 'ok %i %s' % (self._done, command) if FLAKY in output.test.outcomes: status_line = status_line + ' # TODO : Fix flaky test' logger.info(status_line)