From 3ff56d48ee4775ec5ea346c51d329d8af1579b0a Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Fri, 13 Mar 2015 07:26:23 -0700 Subject: [PATCH] Normalize path handling on Windows in test script. --- script/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/test.py b/script/test.py index 4cbf9b19..e5dbfd94 100755 --- a/script/test.py +++ b/script/test.py @@ -82,7 +82,10 @@ def run_test(path): return # Make a nice short path relative to the working directory. - path = relpath(path) + + # Normalize it to use "/" since, among other things, wren expects its argument + # to use that. + path = relpath(path).replace("\\", "/") # Read the test and parse out the expectations. expect_output = []