Skip to content

Commit 9bf7f46

Browse files
committed
test: Do not update toolchain in exact output check
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
1 parent ede3419 commit 9bf7f46

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/cli-inst-interactive.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ Rust is installed now. Great!
124124
fn blank_lines_around_stderr_log_output_update() {
125125
setup(&|config| {
126126
run_input(config, &["rustup-init"], "\n\n");
127-
let out = run_input(config, &["rustup-init"], "\n\n");
127+
let out = run_input(
128+
config,
129+
&["rustup-init", "--no-update-default-toolchain"],
130+
"\n\n",
131+
);
128132
println!("-- stdout --\n {}", out.stdout);
129133
println!("-- stderr --\n {}", out.stderr);
130134

tests/cli-self-upd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ fn reinstall_exact() {
901901
expect_ok(config, &["rustup-init", "-y"]);
902902
expect_stderr_ok(
903903
config,
904-
&["rustup-init", "-y"],
904+
&["rustup-init", "-y", "--no-update-default-toolchain"],
905905
r"info: updating existing rustup installation - leaving toolchains alone",
906906
);
907907
});

0 commit comments

Comments
 (0)