Skip to content

Commit 0fcacd0

Browse files
committed
Scrub more environment variables from the test environment.
1 parent 969c12d commit 0fcacd0

File tree

1 file changed

+5
-0
lines changed
  • crates/cargo-test-support/src

1 file changed

+5
-0
lines changed

crates/cargo-test-support/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,15 +1241,20 @@ pub trait TestEnv: Sized {
12411241
// Don't read the system git config which is out of our control.
12421242
.env("GIT_CONFIG_NOSYSTEM", "1")
12431243
.env_remove("__CARGO_DEFAULT_LIB_METADATA")
1244+
.env_remove("ALL_PROXY")
12441245
.env_remove("EMAIL")
12451246
.env_remove("GIT_AUTHOR_EMAIL")
12461247
.env_remove("GIT_AUTHOR_NAME")
12471248
.env_remove("GIT_COMMITTER_EMAIL")
12481249
.env_remove("GIT_COMMITTER_NAME")
1250+
.env_remove("http_proxy")
1251+
.env_remove("HTTPS_PROXY")
1252+
.env_remove("https_proxy")
12491253
.env_remove("MAKEFLAGS")
12501254
.env_remove("MFLAGS")
12511255
.env_remove("MSYSTEM") // assume cmd.exe everywhere on windows
12521256
.env_remove("RUSTC")
1257+
.env_remove("RUSTC_WORKSPACE_WRAPPER")
12531258
.env_remove("RUSTC_WRAPPER")
12541259
.env_remove("RUSTDOC")
12551260
.env_remove("RUSTDOCFLAGS")

0 commit comments

Comments
 (0)