Skip to content
Snippets Groups Projects
Commit 978f4ca2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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
parent f5efefd5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment