Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 24, 2020
1 parent cdd3b06 commit 88b2c04
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/cli-self-upd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,16 @@ fn update_exact() {
let version = env!("CARGO_PKG_VERSION");
let expected_output = &(r"info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to "
.to_owned()
+ version
+ "
");

update_setup(&|config, _| {
expect_ok(config, &["rustup-init", "-y"]);
expect_ok_ex(config, &["rustup", "self", "update"], r"", expected_output)
expect_ok_ex(
config,
&["rustup", "self", "update"],
&format!(" rustup updated - (toolchain not installed) (from {})\n\n", version),
expected_output,
)
});
}

Expand Down Expand Up @@ -697,9 +698,10 @@ fn update_no_change() {
expect_ok_ex(
config,
&["rustup", "self", "update"],
r"",
r" rustup unchanged - (toolchain not installed)
",
r"info: checking for self-updates
info: already up-to-date
",
);
});
Expand Down

0 comments on commit 88b2c04

Please sign in to comment.