diff options
| author | Damien George | 2019-10-29 22:13:38 +1100 |
|---|---|---|
| committer | Damien George | 2019-10-29 22:22:37 +1100 |
| commit | 1d511152467ad2d21f874c9bbe05f8f117424d3e (patch) | |
| tree | b2b71a0ae8233c6c108dbfbaf5efc9d9e5d5bf7c /tests/run-tests | |
| parent | eebffb2b5b46dae65eeef8290146112348415221 (diff) | |
tests: Add feature check for uio module and skip corresponding tests.
Diffstat (limited to 'tests/run-tests')
| -rwxr-xr-x | tests/run-tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests index 5a2086c5a..77667c271 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -227,6 +227,7 @@ def run_tests(pyb, tests, args, base_path="."): skip_async = False skip_const = False skip_revops = False + skip_io_module = False skip_endian = False has_complex = True has_coverage = False @@ -276,6 +277,11 @@ def run_tests(pyb, tests, args, base_path="."): if output == b'TypeError\n': skip_revops = True + # Check if uio module exists, and skip such tests if it doesn't + output = run_feature_check(pyb, args, base_path, 'uio_module.py') + if output != b'uio\n': + skip_io_module = True + # Check if emacs repl is supported, and skip such tests if it's not t = run_feature_check(pyb, args, base_path, 'repl_emacs_check.py') if not 'True' in str(t, 'ascii'): @@ -430,6 +436,7 @@ def run_tests(pyb, tests, args, base_path="."): is_slice = test_name.find("slice") != -1 or test_name in misc_slice_tests is_async = test_name.startswith("async_") is_const = test_name.startswith("const") + is_io_module = test_name.startswith("io_") skip_it = test_file in skip_tests skip_it |= skip_native and is_native @@ -441,6 +448,7 @@ def run_tests(pyb, tests, args, base_path="."): skip_it |= skip_async and is_async skip_it |= skip_const and is_const skip_it |= skip_revops and test_name.startswith("class_reverse_op") + skip_it |= skip_io_module and is_io_module if args.list_tests: if not skip_it: |
