summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index e2e95884a..522027c1f 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -15,7 +15,7 @@ from multiprocessing.pool import ThreadPool
import threading
import tempfile
-# Maximum time to run a PC-based test, in seconds.
+# Maximum time to run a single test, in seconds.
TEST_TIMEOUT = float(os.environ.get('MICROPY_TEST_TIMEOUT', 30))
# See stackoverflow.com/questions/2632199: __file__ nor sys.argv[0]
@@ -333,7 +333,7 @@ def run_script_on_remote_target(pyb, args, test_file, is_special):
try:
had_crash = False
pyb.enter_raw_repl()
- output_mupy = pyb.exec_(script)
+ output_mupy = pyb.exec_(script, timeout=TEST_TIMEOUT)
except pyboard.PyboardError as e:
had_crash = True
if not is_special and e.args[0] == "exception":