Keep prepared-lower test artifacts in the workspace
This commit is contained in:
parent
6fcadf7547
commit
a6c2f31f4a
1 changed files with 7 additions and 1 deletions
|
|
@ -38,7 +38,13 @@ struct Fixture {
|
||||||
|
|
||||||
impl Fixture {
|
impl Fixture {
|
||||||
fn new() -> Self {
|
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");
|
let root = directory.path().join("storage");
|
||||||
std::fs::create_dir(&root).unwrap();
|
std::fs::create_dir(&root).unwrap();
|
||||||
let catalog = Catalog::new(root.join("catalog.redb"), root.join("storage-catalog.lock"));
|
let catalog = Catalog::new(root.join("catalog.redb"), root.join("storage-catalog.lock"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue