diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-01-07 10:20:36 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-01-07 11:44:52 +0100 |
| commit | 5f0cca3041157a2c845e8e6dcb454e3dd2b24ed5 (patch) | |
| tree | 57607566053c835ac19247987af9caddd6c2cb9f /test | |
| parent | b86f4f664ebb67718f30fe90009c1f4246a9ebe1 (diff) | |
| download | mullvadvpn-5f0cca3041157a2c845e8e6dcb454e3dd2b24ed5.tar.xz mullvadvpn-5f0cca3041157a2c845e8e6dcb454e3dd2b24ed5.zip | |
Use absolute path to refer to `mullvad` binary in `test_upgrade_app`
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-runner/src/app.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test-runner/src/app.rs b/test/test-runner/src/app.rs index 82f332b81c..009638c315 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<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 |
