diff options
author | Damien George <damien@micropython.org> | 2021-03-16 12:46:49 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-03-16 14:49:57 +1100 |
commit | cb68a5741aba5d4935428674234a9d643f97405f (patch) | |
tree | b3c77836be99bc99eb99926aed362d9ba1751e80 | |
parent | a79d97cb76cf6ec3794c357b706dd24970317c4a (diff) | |
download | micropython-cb68a5741aba5d4935428674234a9d643f97405f.tar.gz micropython-cb68a5741aba5d4935428674234a9d643f97405f.zip |
tests/run-tests.py: Provide more info if script run via pyboard crashes.
Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-x | tests/run-tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 3ab6194b62..ae63f9a29a 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -187,7 +187,7 @@ def run_micropython(pyb, args, test_file, is_special=False): if not is_special and e.args[0] == "exception": output_mupy = e.args[1] + e.args[2] + b"CRASH" else: - output_mupy = b"CRASH" + output_mupy = bytes(e.args[0], "ascii") + b"\nCRASH" # canonical form for all ports/platforms is to use \n for end-of-line output_mupy = output_mupy.replace(b"\r\n", b"\n") |