[Commits] Fix mysql-test-run for '.' in mysqld options
commit dc9d3d08bc6a7cc3ba6b7fb68c4c433d86e2195c Author: Sachin <sachin.setiya@mariadb.com> Date: Thu Dec 20 03:43:26 2018 +0530 Fix mysql-test-run for '.' in mysqld options Problem:- There can be situtaions when there is '.' in mysqld options for example channel_name.replicate_do_db="sa", but when we do this we get error while runing test case Unexpected line 'channel_name.replicate_do_db="sa"' found in ** at lib/My/ConfigFactory.pm line 445. Solution:- We change the regex to include detection of '.' diff --git a/mysql-test/lib/My/Config.pm b/mysql-test/lib/My/Config.pm index 4af59a178de..b7f694d6388 100644 --- a/mysql-test/lib/My/Config.pm +++ b/mysql-test/lib/My/Config.pm @@ -300,7 +300,7 @@ sub new { } # <option> - elsif ( $line =~ /^(#?[\w-]+)\s*$/ ) { + elsif ( $line =~ /^(#?[\.\w-]+)\s*$/ ) { my $option= $1; croak "Found option '$option' outside of group" @@ -311,7 +311,7 @@ sub new { } # <option>=<value> - elsif ( $line =~ /^(#?[\w-]+)\s*=\s*(.*?)\s*$/ ) { + elsif ( $line =~ /^(#?[\.\w-]+)\s*=\s*(.*?)\s*$/ ) { my $option= $1; my $value= $2; -- Regards Sachin Setiya Software Engineer at MariaDB
participants (1)
-
Sachin Setiya