From 18fa65e47402d85c53361798046e306d2cf4bac1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 10 Mar 2020 02:58:47 +1100 Subject: [PATCH] tests: Make default MICROPYPATH include extmod to find uasyncio. --- tests/run-multitests.py | 3 +++ tests/run-tests | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/run-multitests.py b/tests/run-multitests.py index edf2238a5b..4e5bfc3b05 100755 --- a/tests/run-multitests.py +++ b/tests/run-multitests.py @@ -382,6 +382,9 @@ def main(): cmd_parser.add_argument("files", nargs="+", help="input test files") cmd_args = cmd_parser.parse_args() + # clear search path to make sure tests use only builtin modules and those in extmod + os.environ['MICROPYPATH'] = os.pathsep + '../extmod' + test_files = prepare_test_file_list(cmd_args.files) max_instances = max(t[1] for t in test_files) diff --git a/tests/run-tests b/tests/run-tests index df55a4e9ec..e34c2531f0 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -628,8 +628,8 @@ the last matching regex is used: tests = args.files if not args.keep_path: - # clear search path to make sure tests use only builtin modules - os.environ['MICROPYPATH'] = '' + # clear search path to make sure tests use only builtin modules and those in extmod + os.environ['MICROPYPATH'] = os.pathsep + '../extmod' # Even if we run completely different tests in a different directory, # we need to access feature_check's from the same directory as the