mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 23:30:35 -06:00
Tests: Unset CLICOLOR[_FORCE]
Ensure that the CLICOLOR[_FORCE] environment variables are not set when running CMake's tests, as they cause especially RunCMake tests to produce output that doesn't match the test expectations, resulting in spurious test failures.
This commit is contained in:
@@ -29,6 +29,8 @@ if(NOT CTEST_CONFIGURATION_TYPE)
|
||||
endif()
|
||||
|
||||
# Isolate tests from user configuration in the environment.
|
||||
unset(ENV{CLICOLOR})
|
||||
unset(ENV{CLICOLOR_FORCE})
|
||||
unset(ENV{CMAKE_GENERATOR})
|
||||
unset(ENV{CMAKE_GENERATOR_INSTANCE})
|
||||
unset(ENV{CMAKE_GENERATOR_PLATFORM})
|
||||
|
||||
Reference in New Issue
Block a user