Skip to content

Commit

Permalink
fix: escape path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnimarun committed Dec 18, 2023
1 parent 880f1cb commit 2a75d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recipe/jinja.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ mod tests {

with_temp_dir("rattler_build_recipe_jinja_eval_git", |path| {
git_clone("https://github.com/prefix-dev/rip.git", path, "803b7e3859ce38e101b0a573420a40736bc91d69").expect("Failed to clone the git repo");
assert_eq!(jinja.eval(&format!("git.latest_tag('{}')", path.display())).expect("test 0").as_str().unwrap(), "v0.1.0");
assert_eq!(jinja.eval(&format!("git.latest_tag_rev('{}')", path.display())).expect("test 1").as_str().unwrap(), "803b7e3859ce38e101b0a573420a40736bc91d69");
assert_eq!(jinja.eval(&format!("git.latest_tag({:?})", path)).expect("test 0").as_str().unwrap(), "v0.1.0");
assert_eq!(jinja.eval(&format!("git.latest_tag_rev({:?})", path)).expect("test 1").as_str().unwrap(), "803b7e3859ce38e101b0a573420a40736bc91d69");
// assert_eq!(jinja.eval("git.head_hash('.')").expect("test 2").as_str().unwrap(), "803b7e3859ce38e101b0a573420a40736bc91d69");
// assert_eq!(jinja.eval("git.tag_hash('.', 'v0.1.0')").expect("test 3").as_str().unwrap(), "803b7e3859ce38e101b0a573420a40736bc91d69");
});
Expand Down

0 comments on commit 2a75d28

Please sign in to comment.