Skip to content

Commit c675886

Browse files
committed
Added --titlebar option to enable/disable the titlebar
The titlebar scrambled var/log/Stdout.log and can becasue of this not be on by default.
1 parent b99c3b2 commit c675886

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ ($)
365365
my $opt_max_save_datadir= env_or_val(MTR_MAX_SAVE_DATADIR => 20);
366366
my $opt_max_test_fail= env_or_val(MTR_MAX_TEST_FAIL => 10);
367367
my $opt_core_on_failure= 0;
368-
368+
my $opt_titlebar= 0;
369369
my $opt_parallel= $ENV{MTR_PARALLEL} || 1;
370370
my $opt_port_group_size = $ENV{MTR_PORT_GROUP_SIZE} || 20;
371371

@@ -908,7 +908,7 @@ ($$$)
908908
delete $next->{reserved};
909909
}
910910

911-
titlebar_stat(scalar(@$tests)) if $set_titlebar;
911+
titlebar_stat(scalar(@$tests)) if $set_titlebar && $opt_titlebar;
912912

913913
if ($next) {
914914
# We don't need this any more
@@ -1245,6 +1245,7 @@ sub command_line_setup {
12451245
'start-and-exit' => \$opt_start_exit,
12461246
'start' => \$opt_start,
12471247
'user-args' => \$opt_user_args,
1248+
'titlebar' => \$opt_titlebar,
12481249
'wait-all' => \$opt_wait_all,
12491250
'print-testcases' => \&collect_option,
12501251
'repeat=i' => \$opt_repeat,
@@ -6502,6 +6503,8 @@ ($)
65026503
leaves just the server running
65036504
start-dirty Only start the servers (without initialization) for
65046505
the first specified test case
6506+
titlebar Enable progress stats on the windows title bar. Works
6507+
on Windows and Xterm.
65056508
user-args In combination with start* and no test name, drops
65066509
arguments to mysqld except those specified with
65076510
--mysqld (if any)

0 commit comments

Comments
 (0)