From 978f4ca2e1e2bdf8037f3c71faa3cd21e86b544f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 20 Dec 2014 16:53:06 +0200 Subject: [PATCH] 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 --- tests/run-tests | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run-tests b/tests/run-tests index 9abcd1138f..037279c1a4 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -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)