mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Scrub more environment variables from the test environment.
This commit is contained in:
parent
969c12dc89
commit
0fcacd0e6c
@ -1241,15 +1241,20 @@ pub trait TestEnv: Sized {
|
||||
// Don't read the system git config which is out of our control.
|
||||
.env("GIT_CONFIG_NOSYSTEM", "1")
|
||||
.env_remove("__CARGO_DEFAULT_LIB_METADATA")
|
||||
.env_remove("ALL_PROXY")
|
||||
.env_remove("EMAIL")
|
||||
.env_remove("GIT_AUTHOR_EMAIL")
|
||||
.env_remove("GIT_AUTHOR_NAME")
|
||||
.env_remove("GIT_COMMITTER_EMAIL")
|
||||
.env_remove("GIT_COMMITTER_NAME")
|
||||
.env_remove("http_proxy")
|
||||
.env_remove("HTTPS_PROXY")
|
||||
.env_remove("https_proxy")
|
||||
.env_remove("MAKEFLAGS")
|
||||
.env_remove("MFLAGS")
|
||||
.env_remove("MSYSTEM") // assume cmd.exe everywhere on windows
|
||||
.env_remove("RUSTC")
|
||||
.env_remove("RUSTC_WORKSPACE_WRAPPER")
|
||||
.env_remove("RUSTC_WRAPPER")
|
||||
.env_remove("RUSTDOC")
|
||||
.env_remove("RUSTDOCFLAGS")
|
||||
|
Loading…
x
Reference in New Issue
Block a user