summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-03 23:51:16 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-03 23:51:16 +0100
commit4b34c76fd6040bb0332923165fcfaf8c85b5dac6 (patch)
tree7d1998fa4f06ace67814df913acbe6e49a7c813a /tests
parent3996611c1bb70af23bfe33809900fe5ee6fa0a3f (diff)
Changes to get unix/ port compiling on Cygwin.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests8
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()