diff options
| author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-04-06 10:42:53 -0400 |
|---|---|---|
| committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-04-06 11:16:09 -0400 |
| commit | 6317f92120bba15c6ea8ee02c47ebff4afb5c53c (patch) | |
| tree | 07c467353b56ab40e6326e0066c81ae2182f8042 /.gitlab | |
| parent | c6a45968d6d003e97307f464ae5f70383af89ca4 (diff) | |
| download | cmake-6317f92120bba15c6ea8ee02c47ebff4afb5c53c.tar.gz | |
ci: pay attention to the machine load when running tests
CMake's test suite is sensitive to machine load and can cause spurious
timeouts. To acknowledge this, prevent CTest from spawning tests into a
busy machine.
Diffstat (limited to '.gitlab')
| -rw-r--r-- | .gitlab/ci/ctest_test.cmake | 1 | ||||
| -rw-r--r-- | .gitlab/ci/ctest_test_external.cmake | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test.cmake b/.gitlab/ci/ctest_test.cmake index 08ef18f192..facf9ba4ba 100644 --- a/.gitlab/ci/ctest_test.cmake +++ b/.gitlab/ci/ctest_test.cmake @@ -19,6 +19,7 @@ endif () include("${CMAKE_CURRENT_LIST_DIR}/ctest_exclusions.cmake") ctest_test( PARALLEL_LEVEL "${nproc}" + TEST_LOAD "${nproc}" RETURN_VALUE test_result EXCLUDE "${test_exclusions}") ctest_submit(PARTS Test) diff --git a/.gitlab/ci/ctest_test_external.cmake b/.gitlab/ci/ctest_test_external.cmake index 7a5e94a15d..9de06d1bc5 100644 --- a/.gitlab/ci/ctest_test_external.cmake +++ b/.gitlab/ci/ctest_test_external.cmake @@ -71,6 +71,7 @@ endif () include("${CMAKE_CURRENT_LIST_DIR}/ctest_exclusions.cmake") ctest_test( PARALLEL_LEVEL "${nproc}" + TEST_LOAD "${nproc}" RETURN_VALUE test_result ${ctest_label_args} EXCLUDE "${test_exclusions}") |
