mirror of
https://github.com/casey/just.git
synced 2025-07-07 17:45:00 +00:00
Test passing dot as argument between justfiles (#1530)
This commit is contained in:
parent
94a93c97a0
commit
fb2f22e17f
1 changed files with 20 additions and 0 deletions
|
@ -7,3 +7,23 @@ fn argument_with_different_path_prefix_is_allowed() {
|
|||
.args(["./foo", "../bar"])
|
||||
.run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn passing_dot_as_argument_is_allowed() {
|
||||
Test::new()
|
||||
.justfile(
|
||||
"
|
||||
say ARG:
|
||||
echo {{ARG}}
|
||||
",
|
||||
)
|
||||
.write(
|
||||
"child/justfile",
|
||||
"say ARG:\n '{{just_executable()}}' ../say {{ARG}}",
|
||||
)
|
||||
.current_dir("child")
|
||||
.args(["say", "."])
|
||||
.stdout(".\n")
|
||||
.stderr_regex("'.*' ../say .\necho .\n")
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue