Skip to content

Commit 6bf6bf4

Browse files
committed
utils: Add get_clementine_path.
1 parent c61cf86 commit 6bf6bf4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ pub fn get_citrea_path() -> Result<PathBuf> {
3333
.map(PathBuf::from)
3434
.map_err(|_| anyhow!("CITREA_E2E_TEST_BINARY is not set. Cannot resolve citrea path"))
3535
}
36+
/// Get clementine path from `CLEMENTINE_E2E_TEST_BINARY` env
37+
pub fn get_clementine_path() -> Result<PathBuf> {
38+
std::env::var("CLEMENTINE_E2E_TEST_BINARY")
39+
.map(PathBuf::from)
40+
.map_err(|_| {
41+
anyhow!("CLEMENTINE_E2E_TEST_BINARY is not set. Cannot resolve clementine path")
42+
})
43+
}
3644

3745
/// Get genesis path from resources
3846
/// TODO: assess need for customable genesis path in e2e tests

0 commit comments

Comments
 (0)