summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-06-11 19:47:03 +1000
committerDamien George <damien@micropython.org>2025-06-12 21:53:31 +1000
commit5676b45cbb8644f7b04e2a0495c760d905007983 (patch)
treecc07bd3d4258d65e81ae7daf49586515fc118992
parent63701c2e949861e2b07913d72b0f1490ca079005 (diff)
tests/run-natmodtests.py: Consider a test skipped if mpy doesn't exist.
This is different to a test not being run because there is no corresponding natmod at all. Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xtests/run-natmodtests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-natmodtests.py b/tests/run-natmodtests.py
index b689a07a5..f9d2074f6 100755
--- a/tests/run-natmodtests.py
+++ b/tests/run-natmodtests.py
@@ -166,7 +166,8 @@ def run_tests(target_truth, target, args, resolved_arch):
with open(NATMOD_EXAMPLE_DIR + test_mpy, "rb") as f:
test_script += b"__buf=" + bytes(repr(f.read()), "ascii") + b"\n"
except OSError:
- print("---- {} - mpy file not compiled".format(test_file))
+ test_results.append((test_file, "skip", "mpy file not compiled"))
+ print("skip {} - mpy file not compiled".format(test_file))
continue
test_script += bytes(injected_import_hook_code.format(test_module), "ascii")
test_script += test_file_data