Commit b6296a9c authored by unknown's avatar unknown
Browse files

Print total time spent exectuing test cases

parent 36495cba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ sub mtr_report_test_passed ($) {
  if ( $::opt_timer and -f "$::opt_vardir/log/timer" )
  {
    $timer= mtr_fromfile("$::opt_vardir/log/timer");
    $::glob_tot_real_time += $timer;
    $::glob_tot_real_time += ($timer/1000);
    $timer= sprintf "%12s", $timer;
  }
  $tinfo->{'result'}= 'MTR_RES_PASSED';
@@ -204,7 +204,8 @@ sub mtr_report_stats ($) {
      "http://www.mysql.com/doc/en/MySQL_test_suite.html\n";
  }
  print
    "The servers were restarted $tot_restarts times\n";
      "The servers were restarted $tot_restarts times\n",
      "Spent $::glob_tot_real_time seconds actually executing testcases\n";

  # ----------------------------------------------------------------------
  # If a debug run, there might be interesting information inside