From e3fa0e7f387c0414a53a4d7574da14e85c04428f Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Tue, 7 Jan 2025 10:20:36 +0100 Subject: [PATCH] Use absolute path to refer to `mullvad` binary in `test_upgrade_app` --- test/test-runner/src/app.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/test-runner/src/app.rs b/test/test-runner/src/app.rs index 82f332b81c83..76146c0faae5 100644 --- a/test/test-runner/src/app.rs +++ b/test/test-runner/src/app.rs @@ -5,7 +5,14 @@ use test_rpc::{AppTrace, Error}; /// Get the installed app version string pub async fn version() -> Result { - 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. + let mullvad_cli_bin = 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