diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-23 00:00:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-23 00:00:00 +0000 |
| commit | e8ac3b6b49c6ec38cf4694dc4cb08f12c684ed7b (patch) | |
| tree | d4498c5a21c506a1ab9b3be31fba83228ae65f80 /test_utils/src/lib.rs | |
| parent | 4604de9f25afe235678188e42f4e168587d8a3de (diff) | |
build: env specific fallback relays
to prevent tests from poluting public relays
Diffstat (limited to 'test_utils/src/lib.rs')
| -rw-r--r-- | test_utils/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
| 735 | S: AsRef<std::ffi::OsStr>, | 735 | S: AsRef<std::ffi::OsStr>, |
| 736 | { | 736 | { |
| 737 | let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); | 737 | let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); |
| 738 | cmd.env("NGITTEST", "TRUE"); | ||
| 738 | cmd.args(args); | 739 | cmd.args(args); |
| 739 | // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes | 740 | // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes |
| 740 | rexpect::session::spawn_with_options( | 741 | rexpect::session::spawn_with_options( |
| @@ -756,6 +757,7 @@ where | |||
| 756 | S: AsRef<std::ffi::OsStr>, | 757 | S: AsRef<std::ffi::OsStr>, |
| 757 | { | 758 | { |
| 758 | let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); | 759 | let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); |
| 760 | cmd.env("NGITTEST", "TRUE"); | ||
| 759 | cmd.current_dir(dir); | 761 | cmd.current_dir(dir); |
| 760 | cmd.args(args); | 762 | cmd.args(args); |
| 761 | // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes | 763 | // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes |