diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-10-21 20:35:28 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-10-21 20:51:28 +0000 |
commit | ee735e308eed9706ce126e291950cdbf2a39d841 (patch) | |
tree | 154d18c4d88b59d079058b018b62e4c0ebf99095 | |
parent | 79ed00e14dd12b0c3bd594bfb9109fff9c1b402b (diff) |
GitHub Actions: Set timeout for running tests
Timeout of 5s for tests that do not have the TIMEOUT property,
and 600s for the whole teset suite.
Change-Id: Ie58f1ec2f657448a963bf51d6e93cad142603120
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r-- | .github/workflows/build_cmake.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 7ab0201d97..cc9a25788f 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -426,12 +426,13 @@ jobs: set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON") execute_process( - COMMAND ctest -j ${N} + COMMAND ctest -j ${N} --timeout 5 WORKING_DIRECTORY build/build RESULT_VARIABLE result OUTPUT_VARIABLE output ERROR_VARIABLE output ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE + TIMEOUT 600 ) if (NOT result EQUAL 0) string(REGEX MATCH "[0-9]+% tests.*[0-9.]+ sec.*$" test_results "${output}") |