Normalize path handling on Windows in test script.

This commit is contained in:
Bob Nystrom
2015-03-13 07:26:23 -07:00
parent e6f3ee9191
commit 3ff56d48ee

View File

@ -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 = []