aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-12-20 16:53:06 +0200
committerPaul Sokolovsky2014-12-20 16:53:46 +0200
commit978f4ca2e1e2bdf8037f3c71faa3cd21e86b544f (patch)
treebc55c599400c9705d29535b5efc486e2107b0934 /tests
parentf5efefd5a0ba48b4aa980fc21b8371ab6473fb69 (diff)
run-tests: Allow to run testuite against Windows build on Linux (using Wine).
Just adjust line-endings of micropython.exe output, the rest should be handled by Wine (automagically on properly configured distro). To run: MICROPY_MICROPYTHON=../windows/micropython.exe ./run-tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 9abcd1138..037279c1a 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -120,6 +120,10 @@ def run_tests(pyb, tests, args):
# run Micro Python
output_mupy = run_micropython(pyb, args, test_file)
+ if os.name != 'nt':
+ # It may be the case that we run Windows build under Linux
+ # (using Wine).
+ output_mupy = output_mupy.replace(b'\r\n', b'\n')
if output_mupy == b'SKIP\n' or output_mupy == b'SKIP\r\n':
print("skip ", test_file)