Skip to content

Commit 05e2128

Browse files
author
Pavan Naik
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents f3fd244 + 3e6cbcf commit 05e2128

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5775,13 +5775,26 @@ ($$$)
57755775
my $found_skip_core= 0;
57765776
my $found_no_console= 0;
57775777
my $found_log_error= 0;
5778+
5779+
# On windows, do not add console if log-error found in .cnf file
5780+
open (CONFIG_FILE, " < $path_config_file") or
5781+
die("Could not open output file $path_config_file");
5782+
5783+
while (<CONFIG_FILE>)
5784+
{
5785+
if (m/^log[-_]error/)
5786+
{
5787+
$found_log_error= 1;
5788+
}
5789+
}
5790+
close (CONFIG_FILE);
5791+
57785792
foreach my $arg ( @$extra_opts )
57795793
{
57805794
# Skip --defaults-file option since it's handled above.
57815795
next if $arg =~ /^--defaults-file/;
5782-
57835796

5784-
if ($arg eq "--log-error")
5797+
if ($arg =~ /^--log[-_]error/)
57855798
{
57865799
$found_log_error= 1;
57875800
}

0 commit comments

Comments
 (0)