diff options
author | unknown <sayantan.dutta@oracle.com> | 2012-11-20 15:33:45 +0530 |
---|---|---|
committer | unknown <sayantan.dutta@oracle.com> | 2012-11-20 15:33:45 +0530 |
commit | fe1bb698622e707b2443758711cba48f81a28d4d (patch) | |
tree | 32e8ab05cf33997152e80704492cc532876b9387 /mysql-test/lib | |
parent | 21345a6aa831067d3d1322f853a04d5cb2aee83e (diff) | |
download | mariadb-git-fe1bb698622e707b2443758711cba48f81a28d4d.tar.gz |
BUG #15895810 - REQUIRE ADDITIONAL INFORMATION WITH THE --RESULT-FILE OPTION OF MTR
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_report.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm index f6b3cf6bda5..af5b32ed939 100644 --- a/mysql-test/lib/mtr_report.pm +++ b/mysql-test/lib/mtr_report.pm @@ -27,7 +27,7 @@ our @EXPORT= qw(report_option mtr_print_line mtr_print_thick_line mtr_warning mtr_error mtr_debug mtr_verbose mtr_verbose_restart mtr_report_test_passed mtr_report_test_skipped mtr_print - mtr_report_test); + mtr_report_test isotime); use mtr_match; use My::Platform; @@ -109,6 +109,8 @@ sub mtr_report_test_passed ($) { $tinfo->{'result'}= 'MTR_RES_PASSED'; mtr_report_test($tinfo); + + resfile_global("endtime ", isotime (time)); } @@ -534,4 +536,12 @@ sub mtr_verbose_restart (@) { } +# Used by --result-file for for formatting times + +sub isotime($) { + my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]); + return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ", + $yr+1900, $mon+1, $day, $hr, $min, $sec; +} + 1; |