Browse Source

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

Signed-off-by: Damien George <damien@micropython.org>
pull/15134/head
Damien George 5 months ago
parent
commit
5d07d0c7b0
  1. 3
      tests/run-natmodtests.py

3
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

Loading…
Cancel
Save