Use cargo_bin! to locate the integration test binary (#933)

This commit is contained in:
David Peter authored and GitHub committed 2026-10-02 10:54:51 +02:00
1 parent 27a079e0df
commit 4b561defef
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
}