Skip to content

Commit 978f4ca

Browse files
committed
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
1 parent f5efefd commit 978f4ca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/run-tests

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ def run_tests(pyb, tests, args):
120120

121121
# run Micro Python
122122
output_mupy = run_micropython(pyb, args, test_file)
123+
if os.name != 'nt':
124+
# It may be the case that we run Windows build under Linux
125+
# (using Wine).
126+
output_mupy = output_mupy.replace(b'\r\n', b'\n')
123127

124128
if output_mupy == b'SKIP\n' or output_mupy == b'SKIP\r\n':
125129
print("skip ", test_file)

0 commit comments

Comments
 (0)