summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-05-27 11:44:54 +1000
committerDamien George <damien@micropython.org>2024-05-27 11:44:54 +1000
commit5d07d0c7b0b2b3601d69a74da837d77e65941f75 (patch)
treecc2221c515a5e3426a1617cce0f07cbdb2840fc5
parentdf419137821a07a382eb78ce528c700870a4351c (diff)
tests/run-natmodtests.py: Fix search for supported native tests.
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 e61cf0993..f1a2a9746 100755
--- a/tests/run-natmodtests.py
+++ b/tests/run-natmodtests.py
@@ -97,8 +97,9 @@ class TargetPyboard:
def run_tests(target_truth, target, args, stats):
for test_file in args.files:
# Find supported test
+ test_file_basename = os.path.basename(test_file)
for k, v in TEST_MAPPINGS.items():
- if test_file.find(k) != -1:
+ if test_file_basename.startswith(k):
test_module = k
test_mpy = v.replace("$(ARCH)", args.arch)
break