tests: Make default MICROPYPATH include extmod to find uasyncio.
This commit is contained in:
parent
3667effff1
commit
18fa65e474
@ -382,6 +382,9 @@ def main():
|
|||||||
cmd_parser.add_argument("files", nargs="+", help="input test files")
|
cmd_parser.add_argument("files", nargs="+", help="input test files")
|
||||||
cmd_args = cmd_parser.parse_args()
|
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)
|
test_files = prepare_test_file_list(cmd_args.files)
|
||||||
max_instances = max(t[1] for t in test_files)
|
max_instances = max(t[1] for t in test_files)
|
||||||
|
|
||||||
|
@ -628,8 +628,8 @@ the last matching regex is used:
|
|||||||
tests = args.files
|
tests = args.files
|
||||||
|
|
||||||
if not args.keep_path:
|
if not args.keep_path:
|
||||||
# clear search path to make sure tests use only builtin modules
|
# clear search path to make sure tests use only builtin modules and those in extmod
|
||||||
os.environ['MICROPYPATH'] = ''
|
os.environ['MICROPYPATH'] = os.pathsep + '../extmod'
|
||||||
|
|
||||||
# Even if we run completely different tests in a different directory,
|
# Even if we run completely different tests in a different directory,
|
||||||
# we need to access feature_check's from the same directory as the
|
# we need to access feature_check's from the same directory as the
|
||||||
|
Loading…
Reference in New Issue
Block a user