File tree 1 file changed +4
-24
lines changed 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -624,34 +624,14 @@ impl<T: Writer> ConsoleTestState<T> {
624
624
Ok ( ( ) )
625
625
}
626
626
627
- pub fn write_run_finish ( & mut self ,
628
- ratchet_metrics : & Option < Path > ,
629
- ratchet_pct : Option < f64 > ) -> io:: IoResult < bool > {
627
+ pub fn write_run_finish ( & mut self ) -> io:: IoResult < bool > {
630
628
assert ! ( self . passed + self . failed + self . ignored + self . measured == self . total) ;
631
629
632
- let ratchet_success = match * ratchet_metrics {
633
- None => true ,
634
- Some ( ref pth) => {
635
- try!( self . write_plain ( format ! ( "\n using metrics ratchet: {:?}\n " ,
636
- pth. display( ) ) . as_slice ( ) ) ) ;
637
- match ratchet_pct {
638
- None => ( ) ,
639
- Some ( pct) =>
640
- try!( self . write_plain ( format ! ( "with noise-tolerance \
641
- forced to: {}%\n ",
642
- pct) . as_slice ( ) ) )
643
- }
644
- true
645
- }
646
- } ;
647
-
648
- let test_success = self . failed == 0 u;
649
- if !test_success {
630
+ let success = self . failed == 0 u;
631
+ if !success {
650
632
try!( self . write_failures ( ) ) ;
651
633
}
652
634
653
- let success = ratchet_success && test_success;
654
-
655
635
try!( self . write_plain ( "\n test result: " ) ) ;
656
636
if success {
657
637
// There's no parallelism at this point so it's safe to use color
@@ -745,7 +725,7 @@ pub fn run_tests_console(opts: &TestOpts, tests: Vec<TestDescAndFn> ) -> io::IoR
745
725
None => { }
746
726
}
747
727
try!( run_tests ( opts, tests, |x| callback ( & x, & mut st) ) ) ;
748
- return st. write_run_finish ( & None , None ) ;
728
+ return st. write_run_finish ( ) ;
749
729
}
750
730
751
731
#[ test]
You can’t perform that action at this time.
0 commit comments