summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-01-21 00:56:59 +1100
committerDamien George <damien@micropython.org>2025-02-11 16:41:48 +1100
commit372ecfef02eccc4e52a5d0abef068c7d25fc4315 (patch)
treeb030502e60449123c3b3bc0b43c2f9d6605f225f
parent3b6252466139d5dfc7458eeea5d759b6c9850146 (diff)
downloadmicropython-372ecfef02eccc4e52a5d0abef068c7d25fc4315.tar.gz
micropython-372ecfef02eccc4e52a5d0abef068c7d25fc4315.zip
tests/run-tests.py: Give more information when CPython crashes.
To make it easier to diagnose why CPython crashed. Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xtests/run-tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 1df1b35d23..b108b16395 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -955,8 +955,8 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
cwd=os.path.dirname(test_file),
stderr=subprocess.STDOUT,
)
- except subprocess.CalledProcessError:
- output_expected = b"CPYTHON3 CRASH"
+ except subprocess.CalledProcessError as er:
+ output_expected = b"CPYTHON3 CRASH:\n" + er.output
# Canonical form for all host platforms is to use \n for end-of-line.
output_expected = output_expected.replace(b"\r\n", b"\n")