1
1
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:
Sibi Prabakaran 2024-11-18 08:50:28 +05:30
parent 1676f0b901
commit 3593976837
No known key found for this signature in database
GPG Key ID: D19E3E0EBB557613

View File

@ -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();
}