From f4c242fe21f18f747a4ca1f8e76cfe5918dc2929 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 19 Nov 2026 23:32:07 -0500 Subject: [PATCH] test(raw): ensure CARGO_TARGET_TMPDIR exists in decode_report FixtureDir (#2502) --- crates/raw/tests/it/decode_report.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/raw/tests/it/decode_report.rs b/crates/raw/tests/it/decode_report.rs index 89c800ce6..3d43a1db2 100644 --- a/crates/raw/tests/it/decode_report.rs +++ b/crates/raw/tests/it/decode_report.rs @@ -18,6 +18,7 @@ struct FixtureDir(PathBuf); impl FixtureDir { fn new(test: &str) -> Self { let root = Path::new(env!("CARGO_TARGET_TMPDIR")); + std::fs::create_dir_all(root).unwrap_or_else(|error| panic!("create tmp root {}: {error}", root.display())); for attempt in 0..1000 { let path = root.join(format!("decode-report-{test}-{}-{attempt}", std::process::id())); // Only clean up a directory this test created, even if a process ID was reused.