Use cargo_bin! to locate the integration test binary

This commit is contained in:
David Peter committed 2026-10-02 10:48:32 +02:00
1 parent f12f3d9f86
commit 7801abf7ca
1 file changed
+1 -3
+1 -3
View File
@@ -1,9 +1,7 @@
use std::process::Command;
use assert_cmd::cargo::CommandCargoExt;
pub fn hyperfine_raw_command() -> Command {
let mut cmd = Command::cargo_bin("hyperfine").unwrap();
let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine"));
cmd.current_dir("tests/");
cmd
}