mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Normalize path handling on Windows in test script.
This commit is contained in:
@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user