mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 04:51:12 +02:00
tests/run-tests.py: Unconditionally enable native tests if asked.
This commit lets the test runner enumerate and run native tests if the feature check fails but native tests were explicitly requested from the command line. The old behaviour would disable native tests anyway if the feature check failed, however this hid a bug in the x86 native emitter that would be triggered even during the feature check. That meant the test suite would pass on x86 even with a broken emitter, as those tests would have been skipped anyway. Now, if the user asks for native code it will get native code out of the runner no matter what. Co-authored-by: Damien George <damien@micropython.org> Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
5b90d6d418
commit
c1c73d966e
@@ -875,11 +875,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
|
||||
|
||||
test_basename = test_file.replace("..", "_").replace("./", "").replace("/", "_")
|
||||
test_name = os.path.splitext(os.path.basename(test_file))[0]
|
||||
is_native = (
|
||||
test_name.startswith("native_")
|
||||
or test_name.startswith("viper_")
|
||||
or args.emit == "native"
|
||||
)
|
||||
is_native = test_name.startswith("native_") or test_name.startswith("viper_")
|
||||
is_endian = test_name.endswith("_endian")
|
||||
is_int_big = test_name.startswith("int_big") or test_name.endswith("_intbig")
|
||||
is_bytearray = test_name.startswith("bytearray") or test_name.endswith("_bytearray")
|
||||
|
Reference in New Issue
Block a user