summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-14 13:36:06 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-12-14 13:36:06 +0200
commit3233537a1505780ac189031857f0b95d43fb9adb (patch)
tree4a4742074dbe564029cc7def8cb309aac8a9a46b
parent325d0fc74ba9634f89f6535210944ccdd635a995 (diff)
tests/run-tests: Don't test for --target=unix with "pyb is None".
If we test for unix target, do that explicitly. pyb var will be None for commands like --list-tests too.
-rwxr-xr-xtests/run-tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-tests b/tests/run-tests
index b5f19be47..79b3e2112 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -287,14 +287,14 @@ def run_tests(pyb, tests, args, base_path="."):
skip_tests.add('cmdline/cmd_parsetree.py')
# Some tests shouldn't be run on a PC
- if pyb is None:
+ if args.target == 'unix':
# 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:
+ if args.target != 'unix':
skip_tests.add('basics/exception_chain.py') # warning is not printed
skip_tests.add('micropython/meminfo.py') # output is very different to PC output
skip_tests.add('extmod/machine_mem.py') # raw memory access not supported