use std::path::PathBuf;
pub(crate) fn temp_root(prefix: &str) -> PathBuf {
let root = ic_host_fs::testing::create_fixture_directory(&std::env::temp_dir(), prefix)
.unwrap_or_else(|error| panic!("reserve integration fixture {prefix}: {error}"));
eprintln!(
"Integration fixture retained until success: {}",
root.display()
);
root
}