tests/run-tests: Skip running feature checks for --list-tests/--write-exp.
The whole idea of --list-tests is that we prepare a list of tests to run later, and currently don't have a connection to target board. Similarly for --write-exp - only "python3" binary would be required for this operation, not "micropython".
This commit is contained in:
parent
4475f32420
commit
103eeffcd9
@ -211,7 +211,15 @@ def run_tests(pyb, tests, args, base_path="."):
|
||||
skip_async = False
|
||||
skip_const = False
|
||||
skip_revops = False
|
||||
skip_endian = False
|
||||
has_complex = True
|
||||
has_coverage = False
|
||||
|
||||
upy_float_precision = 32
|
||||
|
||||
# If we're asked to --list-tests, we can't assume that there's a
|
||||
# connection to target, so we can't run feature checks usefully.
|
||||
if not (args.list_tests or args.write_exp):
|
||||
# Check if micropython.native is supported, and skip such tests if it's not
|
||||
output = run_feature_check(pyb, args, base_path, 'native_check.py')
|
||||
if output == b'CRASH':
|
||||
|
Loading…
Reference in New Issue
Block a user