Skip to content

Commit

Permalink
utils: Add get_clementine_path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Oct 11, 2024
1 parent c61cf86 commit 6bf6bf4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ pub fn get_citrea_path() -> Result<PathBuf> {
.map(PathBuf::from)
.map_err(|_| anyhow!("CITREA_E2E_TEST_BINARY is not set. Cannot resolve citrea path"))
}
/// Get clementine path from `CLEMENTINE_E2E_TEST_BINARY` env
pub fn get_clementine_path() -> Result<PathBuf> {
std::env::var("CLEMENTINE_E2E_TEST_BINARY")
.map(PathBuf::from)
.map_err(|_| {
anyhow!("CLEMENTINE_E2E_TEST_BINARY is not set. Cannot resolve clementine path")
})
}

/// Get genesis path from resources
/// TODO: assess need for customable genesis path in e2e tests
Expand Down

0 comments on commit 6bf6bf4

Please sign in to comment.