tests: Allow 'special' tests to output "SKIP" on a single line.

pull/9411/head
Angus Gratton 2022-08-15 12:02:23 +10:00 zatwierdzone przez Damien George
rodzic f2ad152e7e
commit f91ebf6fa9
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -305,6 +305,10 @@ def run_micropython(pyb, args, test_file, is_special=False):
if had_crash or output_mupy in (b"SKIP\n", b"CRASH"):
return output_mupy
# skipped special tests will output "SKIP" surrounded by other interpreter debug output
if is_special and not had_crash and b"\nSKIP\n" in output_mupy:
return b"SKIP\n"
if is_special or test_file in special_tests:
# convert parts of the output that are not stable across runs
with open(test_file + ".exp", "rb") as f: