-
Notifications
You must be signed in to change notification settings - Fork 961
Allow selecting toolchains to uninstall with glob pattern #2540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
19445e4
7962dfe
3c01125
7ce4203
8c94393
75a35b0
693632c
63bc755
ed9f023
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1224,6 +1224,21 @@ fn toolchain_uninstall_is_like_uninstall() { | |
}); | ||
} | ||
|
||
#[test] | ||
fn toolchain_uninstall_pattern() { | ||
setup(&|config| { | ||
expect_ok(config, &["rustup", "uninstall", "stable-*"]); | ||
expect_ok(config, &["rustup", "uninstall", "nightly-*"]); | ||
let mut cmd = clitools::cmd(config, "rustup", &["show"]); | ||
clitools::env(config, &mut cmd); | ||
let out = cmd.output().unwrap(); | ||
assert!(out.status.success()); | ||
let stdout = String::from_utf8(out.stdout).unwrap(); | ||
assert!(!stdout.contains(for_host!("'stable-{}'"))); | ||
assert!(!stdout.contains(for_host!("'nightly-2015-01-01-{}'"))); | ||
}); | ||
} | ||
Comment on lines
+1227
to
+1240
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just copied this test code from other tests and modified it. Is the test correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You probably want to start the test by installing and asserting that stable and nightly are there. Otherwise I think this is fine. |
||
|
||
#[test] | ||
fn toolchain_update_is_like_update_except_that_bare_install_is_an_error() { | ||
setup(&|config| { | ||
|
Uh oh!
There was an error while loading. Please reload this page.