@@ -175,29 +175,15 @@ chain_name
175175 assert ! ( String :: from_utf8_lossy( & output. stdout)
176176 . contains( "🎉 Successfully rebased chain chain_name" ) ) ;
177177
178- assert_eq ! (
179- console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
180- . trim( )
181- . replace( "\r " , "\n " ) ,
182- "
183- Rebasing (1/1)
184-
185- Successfully rebased and updated refs/heads/some_branch_1.
186- Rebasing (1/1)
187-
188- Successfully rebased and updated refs/heads/some_branch_1.5.
189- Rebasing (1/1)
190-
191- Successfully rebased and updated refs/heads/some_branch_2.
192- Rebasing (1/1)
193-
194- Successfully rebased and updated refs/heads/some_branch_2.5.
195- Rebasing (1/1)
196-
197- Successfully rebased and updated refs/heads/some_branch_3.
198- "
178+ let actual = console:: strip_ansi_codes ( & String :: from_utf8_lossy ( & output. stderr ) )
199179 . trim ( )
200- ) ;
180+ . replace ( "\r " , "\n " ) ;
181+ assert ! ( actual. contains( "Successfully rebased and updated refs/heads/some_branch_1." ) ) ;
182+ assert ! ( actual. contains( "Successfully rebased and updated refs/heads/some_branch_1.5." ) ) ;
183+ assert ! ( actual. contains( "Successfully rebased and updated refs/heads/some_branch_2." ) ) ;
184+ assert ! ( actual. contains( "Successfully rebased and updated refs/heads/some_branch_2.5." ) ) ;
185+
186+ assert ! ( actual. contains( "Successfully rebased and updated refs/heads/some_branch_3." ) ) ;
201187
202188 // git chain
203189 let args: Vec < & str > = vec ! [ ] ;
@@ -548,16 +534,11 @@ chain_name
548534 assert ! ( String :: from_utf8_lossy( & output. stdout)
549535 . contains( "To continue rebasing, run git chain rebase --step" ) ) ;
550536
551- assert_eq ! (
537+ assert ! (
552538 console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
553539 . trim( )
554- . replace( "\r " , "\n " ) ,
555- "
556- Rebasing (1/1)
557-
558- Successfully rebased and updated refs/heads/some_branch_1.
559- "
560- . trim( )
540+ . replace( "\r " , "\n " )
541+ . contains( "Successfully rebased and updated refs/heads/some_branch_1." ) ,
561542 ) ;
562543
563544 // git chain
@@ -594,16 +575,11 @@ chain_name
594575 assert ! ( String :: from_utf8_lossy( & output. stdout)
595576 . contains( "To continue rebasing, run git chain rebase --step" ) ) ;
596577
597- assert_eq ! (
578+ assert ! (
598579 console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
599580 . trim( )
600- . replace( "\r " , "\n " ) ,
601- "
602- Rebasing (1/1)
603-
604- Successfully rebased and updated refs/heads/some_branch_1.5.
605- "
606- . trim( )
581+ . replace( "\r " , "\n " )
582+ . contains( "Successfully rebased and updated refs/heads/some_branch_1.5." ) ,
607583 ) ;
608584
609585 // git chain
@@ -640,16 +616,11 @@ chain_name
640616 assert ! ( String :: from_utf8_lossy( & output. stdout)
641617 . contains( "To continue rebasing, run git chain rebase --step" ) ) ;
642618
643- assert_eq ! (
619+ assert ! (
644620 console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
645621 . trim( )
646- . replace( "\r " , "\n " ) ,
647- "
648- Rebasing (1/1)
649-
650- Successfully rebased and updated refs/heads/some_branch_2.
651- "
652- . trim( )
622+ . replace( "\r " , "\n " )
623+ . contains( "Successfully rebased and updated refs/heads/some_branch_2." ) ,
653624 ) ;
654625
655626 // git chain
@@ -686,16 +657,11 @@ chain_name
686657 assert ! ( String :: from_utf8_lossy( & output. stdout)
687658 . contains( "To continue rebasing, run git chain rebase --step" ) ) ;
688659
689- assert_eq ! (
660+ assert ! (
690661 console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
691662 . trim( )
692- . replace( "\r " , "\n " ) ,
693- "
694- Rebasing (1/1)
695-
696- Successfully rebased and updated refs/heads/some_branch_2.5.
697- "
698- . trim( )
663+ . replace( "\r " , "\n " )
664+ . contains( "Successfully rebased and updated refs/heads/some_branch_2.5." ) ,
699665 ) ;
700666
701667 // git chain
@@ -729,16 +695,11 @@ chain_name
729695 assert ! ( String :: from_utf8_lossy( & output. stdout)
730696 . contains( "🎉 Successfully rebased chain chain_name" ) ) ;
731697
732- assert_eq ! (
698+ assert ! (
733699 console:: strip_ansi_codes( & String :: from_utf8_lossy( & output. stderr) )
734700 . trim( )
735- . replace( "\r " , "\n " ) ,
736- "
737- Rebasing (1/1)
738-
739- Successfully rebased and updated refs/heads/some_branch_3.
740- "
741- . trim( )
701+ . replace( "\r " , "\n " )
702+ . contains( "Successfully rebased and updated refs/heads/some_branch_3." ) ,
742703 ) ;
743704
744705 // git chain
0 commit comments