Skip to content

Commit 3233537

Browse files
committed
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.
1 parent 325d0fc commit 3233537

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/run-tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ def run_tests(pyb, tests, args, base_path="."):
287287
skip_tests.add('cmdline/cmd_parsetree.py')
288288

289289
# Some tests shouldn't be run on a PC
290-
if pyb is None:
290+
if args.target == 'unix':
291291
# unix build does not have the GIL so can't run thread mutation tests
292292
for t in tests:
293293
if t.startswith('thread/mutate_'):
294294
skip_tests.add(t)
295295

296296
# Some tests shouldn't be run on pyboard
297-
if pyb is not None:
297+
if args.target != 'unix':
298298
skip_tests.add('basics/exception_chain.py') # warning is not printed
299299
skip_tests.add('micropython/meminfo.py') # output is very different to PC output
300300
skip_tests.add('extmod/machine_mem.py') # raw memory access not supported

0 commit comments

Comments
 (0)