GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: include component in tap output · nodejs/node@773ea20

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,15 @@ def AboutToRun(self, case):
269269

270270
def HasRun(self, output):
271271
self._done += 1
272-
command = basename(output.command[-1])
272+
273+
# Print test name as (for example) "parallel/test-assert". Tests that are
274+
# scraped from the addons documentation are all named test.js, making it
275+
# hard to decipher what test is running when only the filename is printed.
276+
prefix = abspath(join(dirname(__file__), '../test')) + '/'
277+
command = output.command[-1]
278+
if command.endswith('.js'): command = command[:-3]
279+
if command.startswith(prefix): command = command[len(prefix):]
280+
273281
if output.UnexpectedOutput():
274282
status_line = 'not ok %i %s' % (self._done, command)
275283
if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE:

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.