diff --git a/test/build.sh b/test/build.sh index 3c598ed4e7a2..133120e6f7af 100755 --- a/test/build.sh +++ b/test/build.sh @@ -15,6 +15,7 @@ if [[ $TARGET == x86_64-unknown-linux-gnu ]]; then -v "${SCRIPT_DIR}/.container/cargo-registry":/root/.cargo/registry \ -v "${APP_DIR}":/src:Z \ -e CARGO_HOME=/root/.cargo/registry \ + -e CARGO_TARGET_DIR=/src/test/target \ mullvadvpn-app-tests \ /bin/bash -c "cd /src/test/; cargo build --bin test-runner --release --target ${TARGET}" else diff --git a/test/test-runner/src/sys.rs b/test/test-runner/src/sys.rs index 562c608120bb..7363e38e7267 100644 --- a/test/test-runner/src/sys.rs +++ b/test/test-runner/src/sys.rs @@ -301,7 +301,7 @@ pub async fn stop_app() -> Result<(), test_rpc::Error> { /// This function waits for the app to successfully start again. #[cfg(target_os = "macos")] pub async fn start_app() -> Result<(), test_rpc::Error> { - set_launch_daemon_state(false).await?; + set_launch_daemon_state(true).await?; tokio::time::sleep(std::time::Duration::from_millis(1000)).await; Ok(()) }