Commit f9ff7472 authored by unknown's avatar unknown

Avoid matching the trailing carriage return when parsing the mysqld.spec file

This fixes problem where --replace_result failed in rpl000015 because the MYSQL_TCP_PORT variable was "3306\r"


mysql-test/mysql-test-run.pl:
  Avoid matching the trailing carriage return when parsing the mysqld.spec file
parent 13c55f3c
......@@ -1269,9 +1269,9 @@ sub collect_mysqld_features () {
else
{
# Put variables into hash
if ( $line =~ /^([\S]+)[ \t]+(.*)$/ )
if ( $line =~ /^([\S]+)[ \t]+(.*?)\r?$/ )
{
# print "$1=$2\n";
# print "$1=\"$2\"\n";
$mysqld_variables{$1}= $2;
}
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment