aboutsummaryrefslogtreecommitdiff
path: root/tests/run-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-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()