diff options
author | David Lechner <david@pybricks.com> | 2022-05-20 19:45:07 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-05-24 00:52:44 +1000 |
commit | d42d35f56d836dca843de30df4c2d069911dc9da (patch) | |
tree | 0f0ecce4866077a83856c77b854742191ef3574c /tests/run-tests.py | |
parent | c012318d74fed232b1c872a1a0cacf91ebcb1b6d (diff) |
tests/run-tests.py: Enable `-X realtime` option for macOS tests.
This enables the new `-X realtime` runtime option when running tests on
macOS. This causes MicroPython to configure all threads to be high
priority so that they are allowed to use high precision timers. This
makes tests that depend on the passage of time more likely to succeed.
CI tests that were disabled because of this are now enabled again.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-x | tests/run-tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 1fc857601..0cfd50f5c 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -258,6 +258,8 @@ def run_micropython(pyb, args, test_file, is_special=False): cmdlist = [MICROPYTHON, "-X", "emit=" + args.emit] if args.heapsize is not None: cmdlist.extend(["-X", "heapsize=" + args.heapsize]) + if sys.platform == "darwin": + cmdlist.extend(["-X", "realtime"]) # if running via .mpy, first compile the .py file if args.via_mpy: |