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
This commit is contained in:
parent
f5efefd5a0
commit
978f4ca2e1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user