test: clean temp dirs and spawned daemons in all crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 19:26:23 +01:00
1 parent 00226b4178
commit dd4cea48d0
12 files changed
+92 -65

No files matched your search

+5 -6
View File
@@ -1,12 +1,11 @@
#[path = "../../../test-support/tmp.rs"]
mod tmp;
use std::fs;
use std::path::{Path, PathBuf};
use std::path::Path;
use std::process::{Command, Output};
fn tmp(tag: &str) -> PathBuf {
let p = std::env::temp_dir().join(format!("grove-cli-{tag}-{}", std::process::id()));
let _ = fs::remove_dir_all(&p);
fs::create_dir_all(&p).unwrap();
p
fn tmp(tag: &str) -> tmp::TempDir {
tmp::TempDir::new(tag)
}
fn git(dir: &Path, args: &[&str]) -> String {