Skip to content

Commit

Permalink
Add TEST_OUT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Nov 28, 2024
1 parent 5baaef3 commit dfc7c3f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/config/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,14 @@ impl Default for TestCaseConfig {
with_light_client_prover: false,
with_full_node: false,
timeout: Duration::from_secs(60),
dir: TempDir::new()
.expect("Failed to create temporary directory")
.into_path(),
dir: std::env::var("TEST_OUT_DIR").map_or_else(
|_| {
TempDir::new()
.expect("Failed to create temporary directory")
.into_path()
},
PathBuf::from,
),
docker: TestCaseDockerConfig::default(),
genesis_dir: None,
}
Expand Down

0 comments on commit dfc7c3f

Please sign in to comment.