From ee735e308eed9706ce126e291950cdbf2a39d841 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 21 Oct 2020 20:35:28 +0200 Subject: 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 --- .github/workflows/build_cmake.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}") -- cgit v1.2.3