File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -624,9 +624,9 @@ impl ExecutionContext {
624
624
exit ! ( 1 ) ;
625
625
}
626
626
627
- pub fn stream < ' a > (
627
+ pub fn stream (
628
628
& self ,
629
- command : & ' a mut BootstrapCommand ,
629
+ command : & mut BootstrapCommand ,
630
630
stdout : OutputMode ,
631
631
stderr : OutputMode ,
632
632
) -> Option < StreamingCommand > {
Original file line number Diff line number Diff line change @@ -34,16 +34,17 @@ pub(crate) fn try_run_tests(
34
34
cmd : & mut BootstrapCommand ,
35
35
stream : bool ,
36
36
) -> bool {
37
- if !run_tests ( builder, cmd, stream) {
38
- if builder. fail_fast {
39
- crate :: exit!( 1 ) ;
40
- } else {
41
- builder. config . exec_ctx ( ) . add_to_delay_failure ( format ! ( "{cmd:?}" ) ) ;
42
- false
43
- }
44
- } else {
45
- true
37
+ if run_tests ( builder, cmd, stream) {
38
+ return true ;
46
39
}
40
+
41
+ if builder. fail_fast {
42
+ crate :: exit!( 1 ) ;
43
+ }
44
+
45
+ builder. config . exec_ctx ( ) . add_to_delay_failure ( format ! ( "{cmd:?}" ) ) ;
46
+
47
+ false
47
48
}
48
49
49
50
fn run_tests ( builder : & Builder < ' _ > , cmd : & mut BootstrapCommand , stream : bool ) -> bool {
You can’t perform that action at this time.
0 commit comments