aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-08 07:21:28 -0700
committerGitHub <noreply@github.com>2021-09-08 07:21:28 -0700
commit5e5a329ea2e1742819320636d978e03bb030986f (patch)
tree53a089e22e1d192a3e7c0a57d827a06ebe8b54f5
parent384a43fe7171e255fa212ca92387893fdd17185b (diff)
downloadrneovim-5e5a329ea2e1742819320636d978e03bb030986f.tar.gz
rneovim-5e5a329ea2e1742819320636d978e03bb030986f.tar.bz2
rneovim-5e5a329ea2e1742819320636d978e03bb030986f.zip
test: timeout at 20 minutes #15597
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
-rw-r--r--cmake/RunTests.cmake1
1 files changed, 1 insertions, 0 deletions
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