Skip to content

Commit 42abfad

Browse files
committed
fix(test/clitools): pass RUSTUP_CI to in-process tests
1 parent afe35ba commit 42abfad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/clitools.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ impl Config {
277277
"/bogus-config-file.toml",
278278
);
279279

280+
// Pass `RUSTUP_CI` over to the test process in case it is required downstream
281+
if let Some(ci) = env::var_os("RUSTUP_CI") {
282+
cmd.env("RUSTUP_CI", ci);
283+
}
284+
280285
if let Some(root) = self.rustup_update_root.as_ref() {
281286
cmd.env("RUSTUP_UPDATE_ROOT", root);
282287
}

0 commit comments

Comments
 (0)