Skip to content

Commit 72290ad

Browse files
committed
Replace build with check in test rerun_untracks_other_files
1 parent e9df793 commit 72290ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testsuite/build_scripts_multiple.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,12 @@ fn bar() {
639639
.file("assets/foo.txt", "foo")
640640
.file("assets/bar.txt", "bar")
641641
.build();
642-
p.cargo("build").run();
642+
p.cargo("check").run();
643643

644644
// Editing foo.txt won't recompile, leading to unnoticed changes
645645

646646
p.change_file("assets/foo.txt", "foo updated");
647-
p.cargo("build -v")
647+
p.cargo("check -v")
648648
.with_stderr_data(str![[r#"
649649
[FRESH] foo v0.1.0 ([ROOT]/foo)
650650
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -655,7 +655,7 @@ fn bar() {
655655
// Editing bar.txt will recompile
656656

657657
p.change_file("assets/bar.txt", "bar updated");
658-
p.cargo("build -v")
658+
p.cargo("check -v")
659659
.with_stderr_data(str![[r#"
660660
[DIRTY] foo v0.1.0 ([ROOT]/foo): the file `assets/bar.txt` has changed ([TIME_DIFF_AFTER_LAST_BUILD])
661661
[COMPILING] foo v0.1.0 ([ROOT]/foo)

0 commit comments

Comments
 (0)