Skip to content

Commit 5d07d0c

Browse files
committed
tests/run-natmodtests.py: Fix search for supported native tests.
Signed-off-by: Damien George <damien@micropython.org>
1 parent df41913 commit 5d07d0c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/run-natmodtests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ def run_script(self, script):
9797
def run_tests(target_truth, target, args, stats):
9898
for test_file in args.files:
9999
# Find supported test
100+
test_file_basename = os.path.basename(test_file)
100101
for k, v in TEST_MAPPINGS.items():
101-
if test_file.find(k) != -1:
102+
if test_file_basename.startswith(k):
102103
test_module = k
103104
test_mpy = v.replace("$(ARCH)", args.arch)
104105
break

0 commit comments

Comments
 (0)