aboutsummaryrefslogtreecommitdiff
path: root/tools/test.py
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:25:58 +0200
commitcb44cd4936171440b435a00097b853f8967cf578 (patch)
tree5e3e636fab1db195b942c1422c9d18f20cb11329 /tools/test.py
parent210fc72e87e276d8ff1d483e1b3262e413a4de84 (diff)
downloadandroid-node-v8-cb44cd4936171440b435a00097b853f8967cf578.tar.gz
android-node-v8-cb44cd4936171440b435a00097b853f8967cf578.tar.bz2
android-node-v8-cb44cd4936171440b435a00097b853f8967cf578.zip
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>
Diffstat (limited to 'tools/test.py')
-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