summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-06-11 19:03:33 +0200
committerunknown <msvensson@neptunus.(none)>2006-06-11 19:03:33 +0200
commitb6296a9cc002e434d9d61c50d3c57678625bc83d (patch)
tree490eb8e8ea773fa305fe1df1a87c21c816cc6ccf
parent36495cba3ba65bb92d7388c67aae9ba056611ac0 (diff)
downloadmariadb-git-b6296a9cc002e434d9d61c50d3c57678625bc83d.tar.gz
Print total time spent exectuing test cases
-rw-r--r--mysql-test/lib/mtr_report.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl
index d79c9bcc622..20ec6bc09e4 100644
--- a/mysql-test/lib/mtr_report.pl
+++ b/mysql-test/lib/mtr_report.pl
@@ -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