Skip to content

Commit 5d151a9

Browse files
authored
test(help): Ensure consistent behavior regardless of rustup use (#15949)
### What does this PR try to resolve? #15928 removed the fix from #13488 which breaks rust-lang/rust. This fixes that and makes the test less brittle for the future. ### How to test and review this PR?
2 parents 2a1de96 + da2eafe commit 5d151a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/testsuite/cargo/help/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use cargo_test_support::str;
66
fn case() {
77
snapbox::cmd::Command::cargo_ui()
88
.arg("--help")
9+
.env_remove("RUSTUP_HOME") // consistent behavior with/without
10+
.env_remove("RUSTUP_TOOLCHAIN")
911
.assert()
1012
.success()
1113
.stdout_eq(file!["stdout.term.svg"])

tests/testsuite/cargo/help/stdout.term.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)