diff options
author | Damien George <damien.p.george@gmail.com> | 2016-07-09 16:52:57 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-07-09 16:52:57 +0100 |
commit | 2b5a1067c0664836ad8737832754f0866f549fd1 (patch) | |
tree | 16da7033c945d27fbe6889f6afdc2747a58c4915 /tests | |
parent | 3096928d5ab6544c3f85639e1b97ac2cefcc2a74 (diff) | |
download | micropython-2b5a1067c0664836ad8737832754f0866f549fd1.tar.gz micropython-2b5a1067c0664836ad8737832754f0866f549fd1.zip |
tests/run-tests: If running thread tests on unix, don't run mutate ones.
They will fail because the GIL is disabled on the unix build.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run-tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests index 649f1789fa..02791896b5 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -201,6 +201,13 @@ def run_tests(pyb, tests, args): skip_tests.add('float/true_value.py') skip_tests.add('float/types.py') + # Some tests shouldn't be run on a PC + if pyb is None: + # unix build does not have the GIL so can't run thread mutation tests + for t in tests: + if t.startswith('thread/mutate_'): + skip_tests.add(t) + # Some tests shouldn't be run on pyboard if pyb is not None: skip_tests.add('basics/exception_chain.py') # warning is not printed |