summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-02-25 00:19:43 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-08 16:51:09 +1100
commit69955238a23b0a9c6e8d1ba6cbacd81f986efa19 (patch)
tree40afdf01666231008e22ece5d3549155b92c6be2
parent31d2d83e79828552363732e0a118a6e61d8c196b (diff)
tests/run-tests: Support running native tests via mpy.
-rwxr-xr-xtests/run-tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 62af90f28..bf5c97c2b 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -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)