diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-03 23:51:16 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-03 23:51:16 +0100 |
| commit | 4b34c76fd6040bb0332923165fcfaf8c85b5dac6 (patch) | |
| tree | 7d1998fa4f06ace67814df913acbe6e49a7c813a /tests | |
| parent | 3996611c1bb70af23bfe33809900fe5ee6fa0a3f (diff) | |
Changes to get unix/ port compiling on Cygwin.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/run-tests | 8 |
1 files changed, 7 insertions, 1 deletions
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() |
