summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-16 08:47:44 +1000
committerDamien George <damien@micropython.org>2022-05-17 14:25:51 +1000
commit5f650b7b7a200a32829fed4efffe606c69f0bc87 (patch)
treeb9aeb310e772e39141d4cdfc0adf3043e8409ffe
parent1762990579ff8ddc285e24492626fe40b6f2621d (diff)
tests/thread: Use less resources for stress_aes if settrace enabled.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--tests/thread/stress_aes.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/thread/stress_aes.py b/tests/thread/stress_aes.py
index 1bf252a80..ebc84d79b 100644
--- a/tests/thread/stress_aes.py
+++ b/tests/thread/stress_aes.py
@@ -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"):