summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2022-08-15 12:02:23 +1000
committerDamien George <damien@micropython.org>2022-09-23 16:02:59 +1000
commitf91ebf6fa972a593ede25d33740e693d99dbbc3f (patch)
treea1663c518e32ade7c2949b44fc9c56a406f3f025
parentf2ad152e7e04608cbf57d756f6a4cebbf9976f6c (diff)
tests: Allow 'special' tests to output "SKIP" on a single line.
-rwxr-xr-xtests/run-tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index ca7941f62..6031b35b5 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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: