Skip to content

Commit

Permalink
tests/run-tests: Don't test for --target=unix with "pyb is None".
Browse files Browse the repository at this point in the history
If we test for unix target, do that explicitly. pyb var will be None
for commands like --list-tests too.
  • Loading branch information
pfalcon committed Dec 14, 2017
1 parent 325d0fc commit 20ecdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20ecdab

Please sign in to comment.