tests/thread: Use less resources for stress_aes if settrace enabled.

Signed-off-by: Damien George <damien@micropython.org>
pull/8669/head
Damien George 2022-05-16 08:47:44 +10:00
rodzic 1762990579
commit 5f650b7b7a
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -267,7 +267,11 @@ def thread_entry(n_loop):
if __name__ == "__main__":
import sys
if sys.platform == "rp2":
if hasattr(sys, "settrace"):
# Builds with sys.settrace enabled are slow, so make the test short.
n_thread = 2
n_loop = 2
elif sys.platform == "rp2":
n_thread = 1
n_loop = 2
elif sys.platform in ("esp32", "pyboard"):