Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Apr 4, 2024
1 parent 1eb90dd commit 7ec719a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions axoupdater-cli/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ fn test_upgrade() -> std::io::Result<()> {
std::fs::copy(BIN, &updater_path)?;

let mut updater = Cmd::new(&updater_path, "run updater");
updater.env_remove("PSModulePath");
updater.env("AXOUPDATER_CONFIG_PATH", bindir);
// We'll do that manually
updater.check(false);
Expand Down Expand Up @@ -165,6 +166,7 @@ fn test_upgrade_to_specific_version() -> std::io::Result<()> {
std::fs::copy(BIN, &updater_path)?;

let mut updater = Cmd::new(&updater_path, "run updater");
updater.env_remove("PSModulePath");
updater.arg("--version").arg(target_version);
updater.env("AXOUPDATER_CONFIG_PATH", bindir);
// We'll do that manually
Expand Down Expand Up @@ -221,6 +223,7 @@ fn test_downgrade_to_specific_version() -> std::io::Result<()> {
let mut updater = Cmd::new(&updater_path, "run updater");
updater.arg("--version").arg(target_version);
updater.env("AXOUPDATER_CONFIG_PATH", bindir);
updater.env_remove("PSModulePath");
// We'll do that manually
updater.check(false);
let result = updater.output();
Expand Down

0 comments on commit 7ec719a

Please sign in to comment.