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

+3
View File
@@ -13,6 +13,9 @@ use std::path::{Path, PathBuf};
use std::time::{SystemTime, UNIX_EPOCH};
mod secrets;
#[cfg(test)]
#[path = "../../../test-support/tmp.rs"]
mod test_tmp;
mod workflow;
#[derive(Parser)]
+2 -1
View File
@@ -763,7 +763,8 @@ mod tests {
#[test]
fn local_repos_match_by_name_or_origin_ignoring_case() {
let d = std::env::temp_dir().join(format!("grove-local-{}", std::process::id()));
let _tmp = crate::test_tmp::TempDir::new("grove-local");
let d = _tmp.path().to_path_buf();
let _ = fs::remove_dir_all(&d);
// `synapse` (lowercase dir) whose origin is Dasemu/Synapse; `other` with a renamed origin.
for (dir, origin) in [