From 5e5a329ea2e1742819320636d978e03bb030986f Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 8 Sep 2021 07:21:28 -0700 Subject: [PATCH] test: timeout at 20 minutes #15597 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set a maximum test run-time of 20 minutes to: - fail faster - avoid wasting CI resources - set a bound on the test time (if tests take longer than 20 minutes we need to invest in parallelizing them...) Timeout looks like: -- Tests exited non-zero: Process terminated due to timeout -- No output to stderr. CMake Error at /…/neovim/cmake/RunTests.cmake:86 (message): functional tests failed with error: Process terminated due to timeout --- cmake/RunTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index f000004aec..9630389ce0 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -58,6 +58,7 @@ execute_process( --lpath=?.lua ${BUSTED_ARGS} ${TEST_PATH} + TIMEOUT 1200 WORKING_DIRECTORY ${WORKING_DIR} ERROR_VARIABLE err RESULT_VARIABLE res