Skip to content

Commit

Permalink
test(cli): remove deprecated_interfaces()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jan 21, 2024
1 parent c14ba56 commit 319c02b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/suite/cli_misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,29 +956,3 @@ fn toolchain_link_then_list_verbose() {
config.expect_stdout_ok(&["rustup", "toolchain", "list", "-v"], "/custom-1");
});
}

#[test]
fn deprecated_interfaces() {
setup(&|config| {
// In verbose mode we want the deprecated interfaces to complain
config.expect_ok_contains(
&["rustup", "--verbose", "install", "nightly"],
"",
"Please use `rustup toolchain install` instead",
);
config.expect_ok_contains(
&["rustup", "--verbose", "uninstall", "nightly"],
"",
"Please use `rustup toolchain uninstall` instead",
);
// But if not verbose then they should *NOT* complain
config.expect_not_stderr_ok(
&["rustup", "install", "nightly"],
"Please use `rustup toolchain install` instead",
);
config.expect_not_stderr_ok(
&["rustup", "uninstall", "nightly"],
"Please use `rustup toolchain uninstall` instead",
);
})
}

0 comments on commit 319c02b

Please sign in to comment.