599
600
push(@{$tinfo->{'slave_opt'}}, $opt);
603
if ( -f $master_opt_file )
603
foreach my $master_opt_file ($global_master_opt_file, $test_master_opt_file)
606
my $master_opt= mtr_get_opts_from_file($master_opt_file);
608
foreach my $opt ( @$master_opt )
606
if ( -f $master_opt_file )
612
# The opt file is used both to send special options to the mysqld
613
# as well as pass special test case specific options to this
616
$value= mtr_match_prefix($opt, "--timezone=");
617
if ( defined $value )
619
$tinfo->{'timezone'}= $value;
623
$value= mtr_match_prefix($opt, "--slave-num=");
624
if ( defined $value )
626
$tinfo->{'slave_num'}= $value;
630
$value= mtr_match_prefix($opt, "--result-file=");
631
if ( defined $value )
633
# Specifies the file mysqltest should compare
635
if ( -f "r/$::opt_engine/$value.result")
637
$tinfo->{'result_file'}= "r/$::opt_engine/$value.result";
641
$tinfo->{'result_file'}= "r/$value.result";
647
# If we set default time zone, remove the one we have
648
$value= mtr_match_prefix($opt, "--default-time-zone=");
649
if ( defined $value )
651
# Set timezone for this test case to something different
652
$tinfo->{'timezone'}= "GMT-8";
653
# Fallthrough, add the --default-time-zone option
656
# The --restart option forces a restart even if no special
657
# option is set. If the options are the same as next testcase
658
# there is no need to restart after the testcase
660
if ( $opt eq "--force-restart" )
662
$tinfo->{'force_restart'}= 1;
666
# Ok, this was a real option, add it
667
push(@{$tinfo->{'master_opt'}}, $opt);
609
my $master_opt= mtr_get_opts_from_file($master_opt_file);
611
foreach my $opt ( @$master_opt )
615
# The opt file is used both to send special options to the mysqld
616
# as well as pass special test case specific options to this
619
$value= mtr_match_prefix($opt, "--timezone=");
620
if ( defined $value )
622
$tinfo->{'timezone'}= $value;
626
$value= mtr_match_prefix($opt, "--slave-num=");
627
if ( defined $value )
629
$tinfo->{'slave_num'}= $value;
633
$value= mtr_match_prefix($opt, "--result-file=");
634
if ( defined $value )
636
# Specifies the file mysqltest should compare
638
if ( -f "r/$::opt_engine/$value.result")
640
$tinfo->{'result_file'}= "r/$::opt_engine/$value.result";
644
$tinfo->{'result_file'}= "r/$value.result";
650
# If we set default time zone, remove the one we have
651
$value= mtr_match_prefix($opt, "--default-time-zone=");
652
if ( defined $value )
654
# Set timezone for this test case to something different
655
$tinfo->{'timezone'}= "GMT-8";
656
# Fallthrough, add the --default-time-zone option
659
# The --restart option forces a restart even if no special
660
# option is set. If the options are the same as next testcase
661
# there is no need to restart after the testcase
663
if ( $opt eq "--force-restart" )
665
$tinfo->{'force_restart'}= 1;
669
# Ok, this was a real option, add it
670
push(@{$tinfo->{'master_opt'}}, $opt);