From 5d19f3d2d73426749e6f7b69eea1dbf24fdedc6a Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 3 Feb 2022 18:04:43 +0100 Subject: Add integration tests to Drone --- src/garage/tests/common/garage.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/garage') diff --git a/src/garage/tests/common/garage.rs b/src/garage/tests/common/garage.rs index 97c7a227..d9dbcc7c 100644 --- a/src/garage/tests/common/garage.rs +++ b/src/garage/tests/common/garage.rs @@ -1,3 +1,4 @@ +use std::env::var_os; use std::mem::MaybeUninit; use std::path::{Path, PathBuf}; use std::process; @@ -203,7 +204,12 @@ pub fn instance() -> &'static Instance { } pub fn command(config_path: &Path) -> process::Command { - let mut command = process::Command::new(env!("CARGO_BIN_EXE_garage")); + let mut command = process::Command::new( + var_os("GARAGE_TEST_INTEGRATION_EXE") + .as_ref() + .and_then(|e| e.to_str()) + .unwrap_or(env!("CARGO_BIN_EXE_garage")), + ); command.arg("-c").arg(config_path); -- cgit v1.2.3