Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temp
Browse files Browse the repository at this point in the history
Gankra committed Apr 8, 2024
1 parent 37ee7ae commit 65ae06e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions axoupdater-cli/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -165,21 +165,10 @@ fn test_upgrade_allow_prerelease() -> std::io::Result<()> {
updater.env("AXOUPDATER_CONFIG_PATH", bindir);
updater.arg("--prerelease");
// We'll do that manually
updater.check(false);
let result = updater.output();
assert!(result.is_ok());
let res = result.unwrap();
let output_stdout = String::from_utf8(res.stdout).unwrap();
let output_stderr = String::from_utf8(res.stderr).unwrap();

updater.run().unwrap();
// Now let's check the version we just updated to
let new_axolotlsay_path = &bindir.join(format!("axolotlsay{EXE_SUFFIX}"));
assert!(
new_axolotlsay_path.exists(),
"update result was\nstdout\n{}\nstderr\n{}",
output_stdout,
output_stderr
);
assert!(new_axolotlsay_path.exists());
let mut new_axolotlsay = Cmd::new(new_axolotlsay_path, "version test");
new_axolotlsay.arg("--version");
let output = new_axolotlsay.output().unwrap();

0 comments on commit 65ae06e

Please sign in to comment.