Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9cccaa3

Browse filesBrowse files
bnoordhuisMyles Borins
authored andcommitted
test: fix component printing on windows
Commit 084b2ec ("test: include component in tap output") introduced an in hindsight glaringly obvious but fortunately not very critical Windows-specific bug by failing to take the path separator into account. This commit rectifies that, the prefix is now correctly stripped. PR-URL: #6915 Refs: #6653 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 373ffc5 commit 9cccaa3
Copy full SHA for 9cccaa3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,11 @@ def HasRun(self, output):
273273
# Print test name as (for example) "parallel/test-assert". Tests that are
274274
# scraped from the addons documentation are all named test.js, making it
275275
# hard to decipher what test is running when only the filename is printed.
276-
prefix = abspath(join(dirname(__file__), '../test')) + '/'
276+
prefix = abspath(join(dirname(__file__), '../test')) + os.sep
277277
command = output.command[-1]
278278
if command.endswith('.js'): command = command[:-3]
279279
if command.startswith(prefix): command = command[len(prefix):]
280+
command = command.replace('\\', '/')
280281

281282
if output.UnexpectedOutput():
282283
status_line = 'not ok %i %s' % (self._done, command)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.