Skip to content

Commit 6d43761

Browse files
roiferami3l
authored andcommitted
test(dist): add regression tests for parsing beta versions with tags
1 parent 74d16e6 commit 6d43761

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/suite/cli_misc.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,18 @@ fn install_unavailable_platform() {
794794
});
795795
}
796796

797+
// issue #1329
798+
#[test]
799+
fn install_beta_with_tag() {
800+
clitools::test(Scenario::BetaTag, &|config| {
801+
config.expect_ok(&["rustup", "default", "1.78.0-beta"]);
802+
config.expect_stdout_ok(&["rustc", "--version"], "1.78.0-beta");
803+
804+
config.expect_ok(&["rustup", "default", "1.79.0-beta.2"]);
805+
config.expect_stdout_ok(&["rustc", "--version"], "1.79.0-beta.2");
806+
})
807+
}
808+
797809
#[test]
798810
fn update_nightly_even_with_incompat() {
799811
clitools::test(Scenario::MissingComponent, &|config| {

0 commit comments

Comments
 (0)