Update test for warning for alias shadowing an external subcommand

This commit is contained in:
Basile Henry 2021-11-14 20:38:40 +01:00
parent 5bfd345e1d
commit 9f768bbcd8

View file

@ -100,14 +100,20 @@ fn default_args_alias() {
p.cargo("echo")
.env("PATH", &path)
.with_status(101)
.with_stderr("error: alias echo has unresolvable recursive definition: echo -> echo")
.with_stderr("\
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
error: alias echo has unresolvable recursive definition: echo -> echo
",
)
.run();
p.cargo("test-1")
.env("PATH", &path)
.with_status(101)
.with_stderr(
"error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo",
.with_stderr("\
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo
",
)
.run();