From cb44cd4936171440b435a00097b853f8967cf578 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Mon, 11 Sep 2017 14:22:22 +0800 Subject: [PATCH] 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 Reviewed-By: Gibson Fahnestock Reviewed-By: Myles Borins Reviewed-By: Ben Noordhuis --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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