Skip to content

Commit a8c2b91

Browse files
jeplerdpgeorge
authored andcommitted
tools/ci.sh: Increase test timeout to 60s in coverage jobs.
The additional overhead of the settrace profiler means that the `aes_stress.py` test was running too slowly on GitHub CI. Double the timeout to 60 seconds. Signed-off-by: Jeff Epler <jepler@gmail.com>
1 parent e415d03 commit a8c2b91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import tempfile
1717

1818
# Maximum time to run a PC-based test, in seconds.
19-
TEST_TIMEOUT = 30
19+
TEST_TIMEOUT = float(os.environ.get('MICROPY_TEST_TIMEOUT', 30))
2020

2121
# See stackoverflow.com/questions/2632199: __file__ nor sys.argv[0]
2222
# are guaranteed to always work, this one should though.

tools/ci.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ function ci_unix_coverage_build {
625625
}
626626

627627
function ci_unix_coverage_run_tests {
628-
ci_unix_run_tests_full_helper coverage
628+
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage
629629
}
630630

631631
function ci_unix_coverage_run_mpy_merge_tests {
@@ -745,7 +745,7 @@ function ci_unix_sanitize_undefined_build {
745745
}
746746

747747
function ci_unix_sanitize_undefined_run_tests {
748-
ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
748+
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
749749
}
750750

751751
function ci_unix_sanitize_address_build {
@@ -756,7 +756,7 @@ function ci_unix_sanitize_address_build {
756756
}
757757

758758
function ci_unix_sanitize_address_run_tests {
759-
ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
759+
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
760760
}
761761

762762
function ci_unix_macos_build {

0 commit comments

Comments
 (0)