Skip to content

Commit 6d89469

Browse files
TimothyGuaddaleax
authored andcommitted
test: fix single test runner regression
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: nodejs#15300 PR-URL: nodejs#15329 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent b94e60d commit 6d89469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def Contains(self, path, file):
789789
if len(path) > len(file):
790790
return False
791791
for i in xrange(len(path)):
792-
if not path[i].match(file[i]):
792+
if not path[i].match(NormalizePath(file[i])):
793793
return False
794794
return True
795795

0 commit comments

Comments
 (0)