Always unset CLICOLOR_FORCE (#241)
* Add test for env:CLICOLOR_FORCE * Always unset CLICOLOR_FORCE
This commit is contained in:
Родитель
b4bff9afac
Коммит
3647db15d5
|
@ -19,13 +19,15 @@ else
|
|||
|
||||
$env:VCPKG_FEATURE_FLAGS="-compilertracking"
|
||||
|
||||
# Test native installation
|
||||
# Test native installation and isolation from CLICOLOR_FORCE=1
|
||||
$env:CLICOLOR_FORCE = 1
|
||||
Run-Vcpkg ($commonArgs + @("install", "tool-libb"))
|
||||
Throw-IfFailed
|
||||
@("tool-control", "tool-manifest", "tool-liba", "tool-libb") | % {
|
||||
Require-FileNotExists $installRoot/$targetTriplet/share/$_
|
||||
Require-FileExists $installRoot/$hostTriplet/share/$_
|
||||
}
|
||||
Remove-Item env:CLICOLOR_FORCE
|
||||
|
||||
Refresh-TestRoot
|
||||
|
||||
|
|
|
@ -238,6 +238,7 @@ int main(const int argc, const char* const* const argv)
|
|||
}
|
||||
#endif
|
||||
set_environment_variable("VCPKG_COMMAND", get_exe_path_of_current_process().generic_u8string());
|
||||
set_environment_variable("CLICOLOR_FORCE", {});
|
||||
|
||||
Checks::register_global_shutdown_handler([]() {
|
||||
const auto elapsed_us_inner = LockGuardPtr<ElapsedTimer>(GlobalState::timer)->microseconds();
|
||||
|
|
Загрузка…
Ссылка в новой задаче