Skip to content

Commit d160270

Browse files
committed
Windows python runtests compatibility
1 parent 8aead51 commit d160270

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ml-proto/runtests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
class RunTests(unittest.TestCase):
1111
def _runTestFile(self, shortName, fileName, interpreterPath):
12+
# HACK: Windows python compatibility
13+
fileName = fileName.replace("\\", "/")
14+
1215
logPath = fileName.replace("test/", "test/output/").replace(".wasm", ".wasm.log")
1316
try:
1417
os.remove(logPath)
@@ -59,6 +62,8 @@ def rebuild_interpreter(path):
5962

6063
if __name__ == "__main__":
6164
interpreterPath = os.path.abspath("src/main.native")
65+
# HACK: Windows python compatibility
66+
interpreterPath = interpreterPath.replace("\\", "/")
6267

6368
try:
6469
os.makedirs("test/output/")

0 commit comments

Comments
 (0)