@@ -591,12 +591,12 @@ fn recompilation() {
591591 . run ( ) ;
592592
593593 // Don't recompile the second time
594- p. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
594+ p. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
595595
596596 // Modify a file manually, shouldn't trigger a recompile
597597 git_project. change_file ( "src/bar.rs" , r#"pub fn bar() { println!("hello!"); }"# ) ;
598598
599- p. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
599+ p. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
600600
601601 p. cargo ( "update" )
602602 . with_stderr ( & format ! (
@@ -605,7 +605,7 @@ fn recompilation() {
605605 ) )
606606 . run ( ) ;
607607
608- p. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
608+ p. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
609609
610610 // Commit the changes and make sure we don't trigger a recompile because the
611611 // lock file says not to change
@@ -614,7 +614,7 @@ fn recompilation() {
614614 git:: commit ( & repo) ;
615615
616616 println ! ( "compile after commit" ) ;
617- p. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
617+ p. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
618618 p. root ( ) . move_into_the_past ( ) ;
619619
620620 // Update the dependency and carry on!
@@ -638,7 +638,7 @@ fn recompilation() {
638638 . run ( ) ;
639639
640640 // Make sure clean only cleans one dep
641- p. cargo ( "clean -p foo" ) . with_stdout ( " ") . run ( ) ;
641+ p. cargo ( "clean -p foo" ) . with_stderr ( "[REMOVED] [..] ") . run ( ) ;
642642 p. cargo ( "check" )
643643 . with_stderr (
644644 "[CHECKING] foo v0.5.0 ([CWD])\n \
@@ -742,7 +742,14 @@ fn update_with_shared_deps() {
742742
743743 // By default, not transitive updates
744744 println ! ( "dep1 update" ) ;
745- p. cargo ( "update dep1" ) . with_stdout ( "" ) . run ( ) ;
745+ p. cargo ( "update dep1" )
746+ . with_stderr (
747+ "\
748+ [UPDATING] git repository [..]
749+ [UPDATING] bar v0.5.0 [..]
750+ " ,
751+ )
752+ . run ( ) ;
746753
747754 // Don't do anything bad on a weird --precise argument
748755 println ! ( "bar bad precise update" ) ;
@@ -766,7 +773,7 @@ Caused by:
766773 println ! ( "bar precise update" ) ;
767774 p. cargo ( "update bar --precise" )
768775 . arg ( & old_head. to_string ( ) )
769- . with_stdout ( " ")
776+ . with_stderr ( "[UPDATING] bar v0.5.0 [..] ")
770777 . run ( ) ;
771778
772779 // Updating recursively should, however, update the repo.
@@ -1496,12 +1503,12 @@ fn git_build_cmd_freshness() {
14961503
14971504 // Smoke test to make sure it doesn't compile again
14981505 println ! ( "first pass" ) ;
1499- foo. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
1506+ foo. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
15001507
15011508 // Modify an ignored file and make sure we don't rebuild
15021509 println ! ( "second pass" ) ;
15031510 foo. change_file ( "src/bar.rs" , "" ) ;
1504- foo. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
1511+ foo. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
15051512}
15061513
15071514#[ cargo_test]
@@ -1636,7 +1643,7 @@ fn git_repo_changing_no_rebuild() {
16361643
16371644 // And now for the real test! Make sure that p1 doesn't get rebuilt
16381645 // even though the git repo has changed.
1639- p1. cargo ( "check" ) . with_stdout ( " ") . run ( ) ;
1646+ p1. cargo ( "check" ) . with_stderr ( "[FINISHED] [..] ") . run ( ) ;
16401647}
16411648
16421649#[ cargo_test]
@@ -1741,7 +1748,7 @@ fn fetch_downloads() {
17411748 ) )
17421749 . run ( ) ;
17431750
1744- p. cargo ( "fetch" ) . with_stdout ( "" ) . run ( ) ;
1751+ p. cargo ( "fetch" ) . with_stderr ( "" ) . run ( ) ;
17451752}
17461753
17471754#[ cargo_test]
@@ -1786,7 +1793,7 @@ fn fetch_downloads_with_git2_first_then_with_gitoxide_and_vice_versa() {
17861793 . run ( ) ;
17871794
17881795 Package :: new ( "bar" , "1.0.0" ) . publish ( ) ; // trigger a crates-index change.
1789- p. cargo ( "fetch" ) . with_stdout ( "" ) . run ( ) ;
1796+ p. cargo ( "fetch" ) . with_stderr ( "" ) . run ( ) ;
17901797}
17911798
17921799#[ cargo_test]
0 commit comments