kopia lustrzana https://github.com/micropython/micropython
tests/run-tests.py: Provide more info if script run via pyboard crashes.
Signed-off-by: Damien George <damien@micropython.org>pull/7041/head
rodzic
a79d97cb76
commit
cb68a5741a
|
@ -187,7 +187,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
|
||||||
if not is_special and e.args[0] == "exception":
|
if not is_special and e.args[0] == "exception":
|
||||||
output_mupy = e.args[1] + e.args[2] + b"CRASH"
|
output_mupy = e.args[1] + e.args[2] + b"CRASH"
|
||||||
else:
|
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
|
# canonical form for all ports/platforms is to use \n for end-of-line
|
||||||
output_mupy = output_mupy.replace(b"\r\n", b"\n")
|
output_mupy = output_mupy.replace(b"\r\n", b"\n")
|
||||||
|
|
Ładowanie…
Reference in New Issue