tests/run-tests: Support running native tests via mpy.

pull/1/head
Damien George 2019-02-25 00:19:43 +11:00
parent 31d2d83e79
commit 69955238a2
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ def run_micropython(pyb, args, test_file, is_special=False):
# if running via .mpy, first compile the .py file
if args.via_mpy:
subprocess.check_output([MPYCROSS, '-mcache-lookup-bc', '-o', 'mpytest.mpy', test_file])
subprocess.check_output([MPYCROSS, '-mcache-lookup-bc', '-o', 'mpytest.mpy', '-X', 'emit=' + args.emit, test_file])
cmdlist.extend(['-m', 'mpytest'])
else:
cmdlist.append(test_file)