Skip to content

Commit

Permalink
Use absolute path to refer to mullvad binary in test_upgrade_app
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Jan 7, 2025
1 parent b86f4f6 commit 5f0cca3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/test-runner/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ use test_rpc::{AppTrace, Error};

/// Get the installed app version string
pub async fn version() -> Result<String, Error> {
let version = tokio::process::Command::new("mullvad")
// The `mullvad` binary is seemingly not in PATH on Windows after upgrading the app..
// So, as a workaround we use the absolute path instead.
const MULLVAD_CLI_BIN: &str = if cfg!(target_os = "windows") {
r"C:\Program Files\Mullvad VPN\resources\mullvad.exe"
} else {
"mullvad"
};
let version = tokio::process::Command::new(MULLVAD_CLI_BIN)
.arg("--version")
.output()
.await
Expand Down

0 comments on commit 5f0cca3

Please sign in to comment.