File tree Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Expand file tree Collapse file tree 2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl<'a> BootstrapCommand {
223
223
224
224
/// Mark the command as being executed, disarming the drop bomb.
225
225
/// If this method is not called before the command is dropped, its drop will panic.
226
- fn mark_as_executed ( & mut self ) {
226
+ pub fn mark_as_executed ( & mut self ) {
227
227
self . drop_bomb . defuse ( ) ;
228
228
}
229
229
@@ -625,18 +625,12 @@ impl ExecutionContext {
625
625
exit ! ( 1 ) ;
626
626
}
627
627
628
- <<<<<<< HEAD
629
- pub fn stream< ' a > (
630
- =======
631
628
/// Spawns the command with configured stdout and stderr handling.
632
629
///
633
- /// Returns `None` if in dry-run mode and the command is not allowed to run.
634
- ///
635
- /// Panics if the command fails to spawn.
630
+ /// Returns None if in dry-run mode or Panics if the command fails to spawn.
636
631
pub fn stream (
637
- >>>>>>> c2e83361cec ( add comment to exec)
638
632
& self ,
639
- command : & ' a mut BootstrapCommand ,
633
+ command : & mut BootstrapCommand ,
640
634
stdout : OutputMode ,
641
635
stderr : OutputMode ,
642
636
) -> 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