Keep prepared-lower test artifacts in the workspace

This commit is contained in:
ms2k 2026-07-19 06:02:45 +09:00
commit a6c2f31f4a

View file

@ -38,7 +38,13 @@ struct Fixture {
impl Fixture {
fn new() -> Self {
let directory = TempDir::new().unwrap();
let artifact_root = Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../../target/test-artifacts/prepared-lower");
std::fs::create_dir_all(&artifact_root).unwrap();
let directory = tempfile::Builder::new()
.prefix("fixture-")
.tempdir_in(artifact_root)
.unwrap();
let root = directory.path().join("storage");
std::fs::create_dir(&root).unwrap();
let catalog = Catalog::new(root.join("catalog.redb"), root.join("storage-catalog.lock"));