summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-09-11 14:22:22 +0800
committerMyles Borins <mylesborins@google.com>2017-09-12 08:23:36 +0200
commit2adabe6777f87f996aecb0e8b43ccc9e2fd4597f (patch)
treeffa991ad8827bd4dbd994ea3a76fbacbbbe260af
parent0343eceda4d6a84e728e54f30ee14f1f96e1b90d (diff)
downloadnode-new-2adabe6777f87f996aecb0e8b43ccc9e2fd4597f.tar.gz
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>
-rwxr-xr-xtools/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test.py b/tools/test.py
index 6839f4e1b2..935ec6c1fb 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -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