aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-08 07:21:28 -0700
committerJustin M. Keyes <justinkz@gmail.com>2021-09-14 07:52:27 -0700
commit09ff3146f31b6c537173db054e59543041a10a4b (patch)
tree090c2b433e6bdb31d47f5ed084d1832a21d5763a
parentf809664f89c7437d2466eae9772c918d22fb77ae (diff)
downloadrneovim-09ff3146f31b6c537173db054e59543041a10a4b.tar.gz
rneovim-09ff3146f31b6c537173db054e59543041a10a4b.tar.bz2
rneovim-09ff3146f31b6c537173db054e59543041a10a4b.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