Skip to content

Commit

Permalink
test: fix single test runner regression
Browse files Browse the repository at this point in the history
When ESM support was added it created a regression in the test runner
that broke the ability to run individual tests. This commit
re-introduces the use of `NormalizePath` which fixes the regression
in the test runner

Refs: #15300
PR-URL: #15329
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
TimothyGu authored and MylesBorins committed Sep 12, 2017
1 parent 0343ece commit 2adabe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def Contains(self, path, file):
if len(path) > len(file):
return False
for i in xrange(len(path)):
if not path[i].match(file[i]):
if not path[i].match(NormalizePath(file[i])):
return False
return True

Expand Down

0 comments on commit 2adabe6

Please sign in to comment.