mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/nodejs/node/pull/15300 PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
210fc72e87
commit
cb44cd4936
1 file changed
+1
-1
+1
-1
@@ -789,7 +789,7 @@ class TestConfiguration(object):
|
||||
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user