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
364f42d0
Commit
364f42d0
authored
Dec 12, 2017
by
Aleksey Midenkov
Committed by
elenst
Dec 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scripts: --tail-lines option for mtr (#493)
parent
d4a41854
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+6
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
364f42d0
...
...
@@ -220,6 +220,7 @@ our @opt_extra_mysqld_opt;
our
@opt_mysqld_envs
;
my
$opt_stress
;
my
$opt_tail_lines
=
20
;
my
$opt_dry_run
;
...
...
@@ -1204,6 +1205,7 @@ sub command_line_setup {
'
report-times
'
=>
\
$opt_report_times
,
'
result-file
'
=>
\
$opt_resfile
,
'
stress=s
'
=>
\
$opt_stress
,
'
tail-lines=i
'
=>
\
$opt_tail_lines
,
'
dry-run
'
=>
\
$opt_dry_run
,
'
help|h
'
=>
\
$opt_usage
,
...
...
@@ -4870,7 +4872,7 @@ sub report_failure_and_restart ($) {
$tinfo
->
{
comment
}
.=
"
The result from queries just before the failure was:
"
.
"
\n
< snip >
\n
"
.
mtr_lastlinesfromfile
(
$log_file_name
,
20
)
.
"
\n
";
mtr_lastlinesfromfile
(
$log_file_name
,
$opt_tail_lines
)
.
"
\n
";
}
}
}
...
...
@@ -5543,7 +5545,7 @@ sub start_mysqltest ($) {
mtr_add_arg
(
$args
,
"
--test-file=%s
",
$tinfo
->
{'
path
'});
# Number of lines of resut to include in failure report
mtr_add_arg
(
$args
,
"
--tail-lines=
20
"
);
mtr_add_arg
(
$args
,
"
--tail-lines=
%d
",
$opt_tail_lines
);
if
(
defined
$tinfo
->
{'
result_file
'}
)
{
mtr_add_arg
(
$args
,
"
--result-file=%s
",
$tinfo
->
{'
result_file
'});
...
...
@@ -6191,6 +6193,8 @@ Misc options
phases of test execution.
stress=ARGS Run stress test, providing options to
mysql-stress-test.pl. Options are separated by comma.
tail-lines=N Number of lines of the result to include in a failure
report.
Some options that control enabling a feature for normal test runs,
can be turned off by prepending 'no' to the option, e.g. --notimer.
...
...
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