diff options
author | Damien George <damien.p.george@gmail.com> | 2020-03-11 20:01:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-11 20:20:18 +1100 |
commit | ea1ea909d7d855d069da052467a7e4c9aac455fb (patch) | |
tree | 6fa8e444b050bc7eeca1c1975819f7578e6fd5ac | |
parent | 359213fbe135417a87c149553e89ac3fb2b57849 (diff) |
tests/run-tests: Consider all tests as native when emit=native is used.
So that they are skipped when running on a target that doesn't support the
native emitter, eg a nanbox build.
-rwxr-xr-x | tests/run-tests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests index 253850b6a..28f0d76f6 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -435,7 +435,7 @@ def run_tests(pyb, tests, args, base_path="."): 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_") + is_native = test_name.startswith("native_") or test_name.startswith("viper_") or args.emit == "native" 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") |