Skip to content
Snippets Groups Projects
Commit 15086dc3 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[T,cmake] Set timeouts properly in NotebookTest().

parent 7e4e6a4e
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,12 @@ function(NotebookTest) ...@@ -34,6 +34,12 @@ function(NotebookTest)
if(NOT DEFINED NotebookTest_RUNTIME) if(NOT DEFINED NotebookTest_RUNTIME)
set(NotebookTest_RUNTIME 1) set(NotebookTest_RUNTIME 1)
elseif(NotebookTest_RUNTIME GREATER 750)
# Set a timeout on jobs larger than the default ctest timeout of 1500
# (s). The allowed runtime is twice as long as the given RUNTIME
# parameter.
math(EXPR timeout "${NotebookTest_RUNTIME} * 2")
set(timeout TIMEOUT ${timeout})
endif() endif()
if(DEFINED OGS_CTEST_MAX_RUNTIME) if(DEFINED OGS_CTEST_MAX_RUNTIME)
...@@ -131,6 +137,7 @@ function(NotebookTest) ...@@ -131,6 +137,7 @@ function(NotebookTest)
${NotebookTest_DISABLED} ${NotebookTest_DISABLED}
LABELS LABELS
"${labels}" "${labels}"
${timeout}
ENVIRONMENT ENVIRONMENT
"CI=1;PYDEVD_DISABLE_FILE_VALIDATION=1" "CI=1;PYDEVD_DISABLE_FILE_VALIDATION=1"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment