@@ -137,7 +137,6 @@ BEGIN
137
137
my $start_only ;
138
138
139
139
our $num_tests_for_report ; # for test-progress option
140
- our $remaining ;
141
140
142
141
my $auth_plugin ; # the path to the authentication test plugin
143
142
284
283
285
284
our $opt_check_testcases = 1;
286
285
my $opt_mark_progress ;
287
- our $opt_test_progress ;
286
+ our $opt_test_progress = 1 ;
288
287
my $opt_max_connections ;
289
288
our $opt_report_times = 0;
290
289
@@ -428,9 +427,7 @@ sub main {
428
427
429
428
# ######################################################################
430
429
my $num_tests = @$tests ;
431
-
432
430
$num_tests_for_report = $num_tests * $opt_repeat ;
433
- $remaining = $num_tests_for_report ;
434
431
435
432
if ( $opt_parallel eq " auto" ) {
436
433
# Try to find a suitable value for number of workers
@@ -1159,7 +1156,7 @@ sub command_line_setup {
1159
1156
' record' => \$opt_record ,
1160
1157
' check-testcases!' => \$opt_check_testcases ,
1161
1158
' mark-progress' => \$opt_mark_progress ,
1162
- ' test-progress' => \$opt_test_progress ,
1159
+ ' test-progress:1 ' => \$opt_test_progress ,
1163
1160
1164
1161
# Extra options used when starting mysqld
1165
1162
' mysqld=s' => \@opt_extra_mysqld_opt ,
@@ -1439,6 +1436,10 @@ sub command_line_setup {
1439
1436
}
1440
1437
}
1441
1438
1439
+ if ($opt_test_progress != 0 and $opt_test_progress != 1) {
1440
+ mtr_error(" Invalid value '$opt_test_progress ' for option 'test-progress'." );
1441
+ }
1442
+
1442
1443
# disable syslog / EventLog in normal (non-bootstrap) operation.
1443
1444
push (@opt_extra_mysqld_opt , " --log-syslog=0" );
1444
1445
@@ -7324,7 +7325,8 @@ ($)
7324
7325
record TESTNAME (Re)genereate the result file for TESTNAME
7325
7326
check-testcases Check testcases for sideeffects
7326
7327
mark-progress Log line number and elapsed time to <testname>.progress
7327
- test-progress Print the percentage of tests completed
7328
+ test-progress[={0|1}] Print the percentage of tests completed. This setting
7329
+ is enabled by default.
7328
7330
7329
7331
Options that pass on options (these may be repeated)
7330
7332
0 commit comments