This commit is contained in:
Bryan Helmkamp 2026-04-08 07:55:32 -04:00
parent 6a5f6024a2
commit e37d20bd6f
No known key found for this signature in database

View file

@ -1737,7 +1737,10 @@ mod tests {
fn run_and_create_commands_include_test_labels() {
let _lock = env_lock().lock().expect("env lock poisoned");
let _guard = EnvGuard::set("NEXTEST_RUN_ID", Some("run-cmd-labels"));
let context = TestContext::new(PathBuf::from("/tmp/fabro"));
let missing_bin_root = tempfile::tempdir().expect("failed to create temp dir");
// Keep the binary path missing so this unit test never bootstraps a
// shared server based on ambient filesystem state at /tmp/fabro.
let context = TestContext::new(missing_bin_root.path().join("fabro"));
let run_args = context
.run_cmd()