Commit 5d07d0c7 authored by Damien George's avatar Damien George

tests/run-natmodtests.py: Fix search for supported native tests.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent df419137
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment