mirror of
https://github.com/casey/just.git
synced 2024-11-22 02:09:44 +03:00
Use canonicalize to resolve macos failures
This commit is contained in:
parent
1676f0b901
commit
3593976837
@ -4,7 +4,12 @@ fn case<F: Fn(&Path) -> Value>(justfile: &str, value: F) {
|
||||
Test::new()
|
||||
.justfile(justfile)
|
||||
.args(["--dump", "--dump-format", "json"])
|
||||
.stdout_with_tempdir(|dir| format!("{}\n", serde_json::to_string(&value(dir.path())).unwrap()))
|
||||
.stdout_with_tempdir(|dir| {
|
||||
format!(
|
||||
"{}\n",
|
||||
serde_json::to_string(&value(&dir.path().canonicalize().unwrap())).unwrap()
|
||||
)
|
||||
})
|
||||
.run();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user