From c1c60beda19df23631a6b6ff87ef67e17a22e22b Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 6 Jul 2017 15:32:31 -0400 Subject: [PATCH] Minimal changes to get WPT tests running on Windows. --- .../tools/wptrunner/wptrunner/wptcommandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptcommandline.py b/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptcommandline.py index 5d44df2fad9..65a09d5c53b 100644 --- a/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptcommandline.py +++ b/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptcommandline.py @@ -280,8 +280,10 @@ def exe_path(name): return path = find_executable(name) - if os.access(path, os.X_OK): + if path and os.access(path, os.X_OK): return path + else: + return None def check_args(kwargs):