Skip to content

Commit c377c2a

Browse files
committed
test(script): Avoid common subcommand name
1 parent c51ea38 commit c377c2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/testsuite/script.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,15 @@ args: []
592592
#[cargo_test]
593593
fn script_like_dir() {
594594
let p = cargo_test_support::project()
595-
.file("script.rs/foo", "something")
595+
.file("foo.rs/foo", "something")
596596
.build();
597597

598-
p.cargo("-Zscript -v script.rs")
598+
p.cargo("-Zscript -v foo.rs")
599599
.masquerade_as_nightly_cargo(&["script"])
600600
.with_status(101)
601601
.with_stderr(
602602
"\
603-
error: manifest path `script.rs` is a directory but expected a file
603+
error: manifest path `foo.rs` is a directory but expected a file
604604
",
605605
)
606606
.run();
@@ -610,12 +610,12 @@ error: manifest path `script.rs` is a directory but expected a file
610610
fn missing_script_rs() {
611611
let p = cargo_test_support::project().build();
612612

613-
p.cargo("-Zscript -v script.rs")
613+
p.cargo("-Zscript -v foo.rs")
614614
.masquerade_as_nightly_cargo(&["script"])
615615
.with_status(101)
616616
.with_stderr(
617617
"\
618-
[ERROR] manifest path `script.rs` does not exist
618+
[ERROR] manifest path `foo.rs` does not exist
619619
",
620620
)
621621
.run();

0 commit comments

Comments
 (0)