1
1
mirror of https://github.com/casey/just.git synced 2024-11-22 02:09:44 +03:00

Fix remaining failing tests

This commit is contained in:
Sibi Prabakaran 2024-11-18 08:53:55 +05:30
parent 3593976837
commit 6fc9e54577
No known key found for this signature in database
GPG Key ID: D19E3E0EBB557613

View File

@ -25,6 +25,8 @@ fn alias() {
let source = test let source = test
.tempdir .tempdir
.path() .path()
.canonicalize()
.unwrap()
.join("justfile") .join("justfile")
.to_str() .to_str()
.unwrap() .unwrap()
@ -1267,8 +1269,22 @@ fn module() {
}) })
.args(["--dump", "--dump-format", "json"]) .args(["--dump", "--dump-format", "json"])
.stdout_with_tempdir(|dir| { .stdout_with_tempdir(|dir| {
let source = dir.path().join("justfile").to_str().unwrap().to_owned(); let source = dir
let foo_just = dir.path().join("foo.just").to_str().unwrap().to_owned(); .path()
.canonicalize()
.unwrap()
.join("justfile")
.to_str()
.unwrap()
.to_owned();
let foo_just = dir
.path()
.canonicalize()
.unwrap()
.join("foo.just")
.to_str()
.unwrap()
.to_owned();
format!( format!(
"{}\n", "{}\n",
serde_json::to_string(&json!({ serde_json::to_string(&json!({
@ -1368,8 +1384,22 @@ fn module_group() {
}) })
.args(["--dump", "--dump-format", "json"]) .args(["--dump", "--dump-format", "json"])
.stdout_with_tempdir(|dir| { .stdout_with_tempdir(|dir| {
let source = dir.path().join("justfile").to_str().unwrap().to_owned(); let source = dir
let foo_just = dir.path().join("foo.just").to_str().unwrap().to_owned(); .path()
.canonicalize()
.unwrap()
.join("justfile")
.to_str()
.unwrap()
.to_owned();
let foo_just = dir
.path()
.canonicalize()
.unwrap()
.join("foo.just")
.to_str()
.unwrap()
.to_owned();
format!( format!(
"{}\n", "{}\n",
serde_json::to_string(&json!({ serde_json::to_string(&json!({