diff options
author | Damien George <damien@micropython.org> | 2025-01-21 00:56:59 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-02-11 16:41:48 +1100 |
commit | 372ecfef02eccc4e52a5d0abef068c7d25fc4315 (patch) | |
tree | b030502e60449123c3b3bc0b43c2f9d6605f225f | |
parent | 3b6252466139d5dfc7458eeea5d759b6c9850146 (diff) | |
download | micropython-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-x | tests/run-tests.py | 4 |
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") |