From d3cc37dfab68a72e7b680f3b3cc724eaefd05497 Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Sun, 8 Nov 2026 19:17:39 +0100 Subject: [PATCH] test: resolve xtask from relocated nextest archives --- xtask/tests/it/audio_probe.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xtask/tests/it/audio_probe.rs b/xtask/tests/it/audio_probe.rs index d984c7637..68fd4b84f 100644 --- a/xtask/tests/it/audio_probe.rs +++ b/xtask/tests/it/audio_probe.rs @@ -58,7 +58,9 @@ impl Drop for FakeTools { /// and every variable the probe reads otherwise cleared, so a developer's own environment /// cannot leak into the scenario. fn run_audio_backend(tools: &FakeTools, set: &[(&str, &OsStr)]) -> Output { - Command::new(env!("CARGO_BIN_EXE_xtask")) + // nextest remaps this runtime path when running a relocated test archive. + let executable = std::env::var_os("NEXTEST_BIN_EXE_xtask").unwrap_or_else(|| env!("CARGO_BIN_EXE_xtask").into()); + Command::new(executable) .arg("audio-backend") .env("PATH", &tools.dir) .env_remove("PKG_CONFIG")