From da2eafe02483cdd0e8f490410fc376947d39f87f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 10 Sep 2025 15:25:35 -0500 Subject: [PATCH] test(help): Ensure consistent behavior regardless of rustup use --- tests/testsuite/cargo/help/mod.rs | 2 ++ tests/testsuite/cargo/help/stdout.term.svg | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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]...