Skip to content

Commit

Permalink
cmk-agent-ctl: Tests: use controller_command_path.
Browse files Browse the repository at this point in the history
CMK-19040

Change-Id: I95d49a4d7db7a4dc0ec18ab404e19f3c4aca861b
  • Loading branch information
Owen Synge committed Feb 12, 2025
1 parent dd5180e commit 8491d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/host/cmk-agent-ctl/tests/test_pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl PullProcessFixture {
test_path
);
}
Command::new(assert_cmd::cargo::cargo_bin("cmk-agent-ctl"))
Command::new(common::controller_command_path())
.env("DEBUG_HOME_DIR", test_path)
.env("DEBUG_CONNECTION_TIMEOUT", "1")
.args(commands)
Expand Down Expand Up @@ -223,7 +223,7 @@ impl TrustFixture {
}

async fn delete_all_connections(test_path: &Path, enable_legacy_mode: bool) -> AnyhowResult<()> {
let mut cmd = Command::new(assert_cmd::cargo::cargo_bin("cmk-agent-ctl"));
let mut cmd = Command::new(common::controller_command_path());
cmd.env("DEBUG_HOME_DIR", test_path).args(["delete-all"]);
if enable_legacy_mode {
cmd.arg("--enable-insecure-connections");
Expand Down

0 comments on commit 8491d35

Please sign in to comment.