diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-04-07 15:59:41 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-04-29 16:45:46 +1000 |
commit | 59a7865a7d667b3c660b53b0cf223bd1f82bad46 (patch) | |
tree | dab0e636d97bf9e0b8c7eaddc36bc2f8e027730f /tests/run-multitests.py | |
parent | 9b06efb94306b127782ebefc6d85a3a12d82d307 (diff) |
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).
Diffstat (limited to 'tests/run-multitests.py')
-rwxr-xr-x | tests/run-multitests.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |