Skip to content

Commit

Permalink
Windows python runtests compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Aug 31, 2015
1 parent 28c1619 commit 7af0f38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ml-proto/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

class RunTests(unittest.TestCase):
def _runTestFile(self, shortName, fileName, interpreterPath):
# HACK: Windows python compatibility
fileName = fileName.replace("\\", "/")

logPath = fileName.replace("test/", "test/output/").replace(".wasm", ".wasm.log")
try:
os.remove(logPath)
Expand Down Expand Up @@ -59,6 +62,8 @@ def rebuild_interpreter(path):

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

try:
os.makedirs("test/output/")
Expand Down

0 comments on commit 7af0f38

Please sign in to comment.