From 69955238a23b0a9c6e8d1ba6cbacd81f986efa19 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 25 Feb 2019 00:19:43 +1100 Subject: [PATCH] tests/run-tests: Support running native tests via mpy. --- tests/run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-tests b/tests/run-tests index 62af90f28c..bf5c97c2b6 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)