Skip to content

Commit 23375cf

Browse files
Use absolute path to refer to mullvad binary in test_upgrade_app
1 parent b5d737c commit 23375cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/test-runner/src/app.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ use test_rpc::{AppTrace, Error};
55

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

0 commit comments

Comments
 (0)