Skip to content

Commit

Permalink
[T,cmake] Set timeouts properly in NotebookTest().
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke authored and endJunction committed Oct 23, 2024
1 parent 7e4e6a4 commit 15086dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/cmake/test/NotebookTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ function(NotebookTest)

if(NOT DEFINED NotebookTest_RUNTIME)
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()

if(DEFINED OGS_CTEST_MAX_RUNTIME)
Expand Down Expand Up @@ -131,6 +137,7 @@ function(NotebookTest)
${NotebookTest_DISABLED}
LABELS
"${labels}"
${timeout}
ENVIRONMENT
"CI=1;PYDEVD_DISABLE_FILE_VALIDATION=1"
)
Expand Down

0 comments on commit 15086dc

Please sign in to comment.