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
pull/1017/head
Paul Sokolovsky 2014-12-20 16:53:06 +02:00
rodzic f5efefd5a0
commit 978f4ca2e1
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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)