Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
56c152fa
Commit
56c152fa
authored
Nov 20, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #15895810 - REQUIRE ADDITIONAL INFORMATION WITH THE --RESULT-FILE OPTION OF MTR
parent
35b9884f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
mysql-test/lib/mtr_report.pm
mysql-test/lib/mtr_report.pm
+11
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-8
No files found.
mysql-test/lib/mtr_report.pm
View file @
56c152fa
...
...
@@ -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
;
mysql-test/mysql-test-run.pl
View file @
56c152fa
...
...
@@ -335,14 +335,6 @@ my $opt_parallel= $ENV{MTR_PARALLEL} || 1;
select
(
STDOUT
);
$|
=
1
;
# Automatically flush STDOUT
# 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
;
}
main
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment