summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-04-06 14:42:53 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-04-06 15:16:09 (GMT)
commit6317f92120bba15c6ea8ee02c47ebff4afb5c53c (patch)
tree07c467353b56ab40e6326e0066c81ae2182f8042 /.gitlab/ci
parentc6a45968d6d003e97307f464ae5f70383af89ca4 (diff)
downloadCMake-6317f92120bba15c6ea8ee02c47ebff4afb5c53c.zip
CMake-6317f92120bba15c6ea8ee02c47ebff4afb5c53c.tar.gz
CMake-6317f92120bba15c6ea8ee02c47ebff4afb5c53c.tar.bz2
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/ci')
-rw-r--r--.gitlab/ci/ctest_test.cmake1
-rw-r--r--.gitlab/ci/ctest_test_external.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_test.cmake b/.gitlab/ci/ctest_test.cmake
index 08ef18f..facf9ba 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 7a5e94a..9de06d1 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}")