|
220 | 220 | our @opt_mysqld_envs;
|
221 | 221 |
|
222 | 222 | my $opt_stress;
|
| 223 | +my $opt_tail_lines= 20; |
223 | 224 |
|
224 | 225 | my $opt_dry_run;
|
225 | 226 |
|
@@ -1205,6 +1206,7 @@ sub command_line_setup {
|
1205 | 1206 | 'report-times' => \$opt_report_times,
|
1206 | 1207 | 'result-file' => \$opt_resfile,
|
1207 | 1208 | 'stress=s' => \$opt_stress,
|
| 1209 | + 'tail-lines=i' => \$opt_tail_lines, |
1208 | 1210 | 'dry-run' => \$opt_dry_run,
|
1209 | 1211 |
|
1210 | 1212 | 'help|h' => \$opt_usage,
|
@@ -4856,7 +4858,7 @@ ($)
|
4856 | 4858 | $tinfo->{comment}.=
|
4857 | 4859 | "The result from queries just before the failure was:".
|
4858 | 4860 | "\n< snip >\n".
|
4859 |
| - mtr_lastlinesfromfile($log_file_name, 20)."\n"; |
| 4861 | + mtr_lastlinesfromfile($log_file_name, $opt_tail_lines)."\n"; |
4860 | 4862 | }
|
4861 | 4863 | }
|
4862 | 4864 | }
|
@@ -5538,7 +5540,7 @@ ($)
|
5538 | 5540 | mtr_add_arg($args, "--test-file=%s", $tinfo->{'path'});
|
5539 | 5541 |
|
5540 | 5542 | # Number of lines of resut to include in failure report
|
5541 |
| - mtr_add_arg($args, "--tail-lines=20"); |
| 5543 | + mtr_add_arg($args, "--tail-lines=%d", $opt_tail_lines); |
5542 | 5544 |
|
5543 | 5545 | if ( defined $tinfo->{'result_file'} ) {
|
5544 | 5546 | mtr_add_arg($args, "--result-file=%s", $tinfo->{'result_file'});
|
@@ -6186,6 +6188,8 @@ ($)
|
6186 | 6188 | phases of test execution.
|
6187 | 6189 | stress=ARGS Run stress test, providing options to
|
6188 | 6190 | mysql-stress-test.pl. Options are separated by comma.
|
| 6191 | + tail-lines=N Number of lines of the result to include in a failure |
| 6192 | + report. |
6189 | 6193 |
|
6190 | 6194 | Some options that control enabling a feature for normal test runs,
|
6191 | 6195 | can be turned off by prepending 'no' to the option, e.g. --notimer.
|
|
0 commit comments