From 4b34c76fd6040bb0332923165fcfaf8c85b5dac6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 3 Apr 2014 23:51:16 +0100 Subject: Changes to get unix/ port compiling on Cygwin. --- tests/run-tests | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/run-tests b/tests/run-tests index 1d99830bc..5be819297 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -36,7 +36,13 @@ if test_on_pyboard: for test_file in tests: test_name = os.path.splitext(os.path.basename(test_file))[0] - output_expected = subprocess.check_output([CPYTHON3, '-B', test_file]) + # run CPython + try: + output_expected = subprocess.check_output([CPYTHON3, '-B', test_file]) + except subprocess.CalledProcessError: + output_expected = b'CPYTHON3 CRASH' + + # run Micro Python try: if test_on_pyboard: pyb.enter_raw_repl() -- cgit v1.2.3