aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-02-03 18:04:43 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-02-03 18:04:43 +0100
commitf1679c6a08837bcace27dc5980bd77fac19b3f85 (patch)
treefcd366c3dc5a15abc4705cd6691d8e074992f9fb /src
parent30f16081497b3cc29de9ad02031846d14b212704 (diff)
downloadgarage-f1679c6a08837bcace27dc5980bd77fac19b3f85.tar.gz
garage-f1679c6a08837bcace27dc5980bd77fac19b3f85.zip
Add integration tests to Droneci/upgrade-cargo2nix
Diffstat (limited to 'src')
-rw-r--r--src/garage/tests/common/garage.rs8
1 files changed, 7 insertions, 1 deletions
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);