From 59a7865a7d667b3c660b53b0cf223bd1f82bad46 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 7 Apr 2020 15:59:41 +1000 Subject: [PATCH] tests/run-multitests.py: Add shortcuts for local Python instances. One can now use `-i micropython` and `-i cpython` to add instances using the `MICROPYTHON` and `CPYTHON3` variables (which can be overridden by env vars). --- tests/run-multitests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run-multitests.py b/tests/run-multitests.py index 3817fbed7..2fd766563 100755 --- a/tests/run-multitests.py +++ b/tests/run-multitests.py @@ -403,6 +403,10 @@ def main(): for i in cmd_args.instance: if i.startswith("exec:"): instances_test.append(PyInstanceSubProcess([i[len("exec:") :]])) + elif i == "micropython": + instances_test.append(PyInstanceSubProcess([MICROPYTHON])) + elif i == "cpython": + instances_test.append(PyInstanceSubProcess([CPYTHON3])) elif i.startswith("pyb:"): instances_test.append(PyInstancePyboard(i[len("pyb:") :])) else: