From e8ac3b6b49c6ec38cf4694dc4cb08f12c684ed7b Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 23 Jan 2024 00:00:00 +0000 Subject: build: env specific fallback relays to prevent tests from poluting public relays --- test_utils/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test_utils/src') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index d119bd7..f509039 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -735,6 +735,7 @@ where S: AsRef, { let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); + cmd.env("NGITTEST", "TRUE"); cmd.args(args); // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes rexpect::session::spawn_with_options( @@ -756,6 +757,7 @@ where S: AsRef, { let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); + cmd.env("NGITTEST", "TRUE"); cmd.current_dir(dir); cmd.args(args); // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes -- cgit v1.2.3