kopia lustrzana https://github.com/micropython/micropython
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-testspull/1017/head
rodzic
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)
|
||||
|
|
Ładowanie…
Reference in New Issue