diff --git a/tests/testsuite/cargo/help/mod.rs b/tests/testsuite/cargo/help/mod.rs index ab26c860c53..bf24ac91d9a 100644 --- a/tests/testsuite/cargo/help/mod.rs +++ b/tests/testsuite/cargo/help/mod.rs @@ -6,6 +6,8 @@ use cargo_test_support::str; fn case() { snapbox::cmd::Command::cargo_ui() .arg("--help") + .env_remove("RUSTUP_HOME") // consistent behavior with/without + .env_remove("RUSTUP_TOOLCHAIN") .assert() .success() .stdout_eq(file!["stdout.term.svg"]) diff --git a/tests/testsuite/cargo/help/stdout.term.svg b/tests/testsuite/cargo/help/stdout.term.svg index 541e3465a86..bf54694dbf9 100644 --- a/tests/testsuite/cargo/help/stdout.term.svg +++ b/tests/testsuite/cargo/help/stdout.term.svg @@ -24,9 +24,9 @@ - Usage: cargo [+toolchain] [OPTIONS] [COMMAND] + Usage: cargo [OPTIONS] [COMMAND] - cargo [+toolchain] [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]... + cargo [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]...