Skip to content

Commit 699afcc

Browse files
committed
Set the RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS env variable in tests
1 parent 1daea70 commit 699afcc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/mock/clitools.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,13 @@ pub fn env<E: rustup_test::Env>(config: &Config, cmd: &mut E) {
446446
.join("tests/mock/signing-key.pub.asc"),
447447
);
448448

449+
// The unix fallback settings file may be present in the test environment, so override
450+
// the path to the settings file with a non-existing path to avoid intereference
451+
cmd.env(
452+
"RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS",
453+
"/bogus-config-file.toml",
454+
);
455+
449456
if let Some(root) = config.rustup_update_root.as_ref() {
450457
cmd.env("RUSTUP_UPDATE_ROOT", root);
451458
}

0 commit comments

Comments
 (0)