mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: Fix add_test and CrosscompilingEmulator tests in parallel
Some additional internal CTest tests require serial execution and break when the CTEST_PARALLEL_LEVEL environment variable is used to specify parallelism, which is required for parallelism bounded by processors via test presets (see #27070).
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
include(RunCMake)
|
||||
|
||||
# Isolate our ctest runs from external environment.
|
||||
unset(ENV{CTEST_PARALLEL_LEVEL})
|
||||
|
||||
set(RunCMake_TEST_OPTIONS
|
||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=${PSEUDO_EMULATOR}")
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
include(RunCMake)
|
||||
|
||||
# Isolate our ctest runs from external environment.
|
||||
unset(ENV{CTEST_PARALLEL_LEVEL})
|
||||
|
||||
set(ENV{CTEST_OUTPUT_ON_FAILURE} 1)
|
||||
|
||||
function(run_case CASE_NAME)
|
||||
|
||||
Reference in New Issue
Block a user