We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mullvad
test_upgrade_app
1 parent b5d737c commit 23375cfCopy full SHA for 23375cf
test/test-runner/src/app.rs
@@ -5,7 +5,14 @@ use test_rpc::{AppTrace, Error};
5
6
/// Get the installed app version string
7
pub async fn version() -> Result<String, Error> {
8
- let version = tokio::process::Command::new("mullvad")
+ // 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)
16
.arg("--version")
17
.output()
18
.await
0 commit comments