Skip to content

Commit

Permalink
tests/run-natmodtests.py: Fix search for supported native tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
Damien George committed May 27, 2024
1 parent df41913 commit 5d07d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/run-natmodtests.py
Original file line number Diff line number Diff line change
@@ -97,8 +97,9 @@ def run_script(self, script):
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

0 comments on commit 5d07d0c

Please sign in to comment.