Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
15086dc3
Commit
15086dc3
authored
4 months ago
by
Lars Bilke
Committed by
Dmitri Naumov
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[T,cmake] Set timeouts properly in NotebookTest().
parent
7e4e6a4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/test/NotebookTest.cmake
+7
-0
7 additions, 0 deletions
scripts/cmake/test/NotebookTest.cmake
with
7 additions
and
0 deletions
scripts/cmake/test/NotebookTest.cmake
+
7
−
0
View file @
15086dc3
...
@@ -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"
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment