mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Save "master_opt" in master so it can be checked later to see if it's the same as the test that are about to run uses the same.
mysql-test/lib/mtr_cases.pl: Move setting of --skip-innodb out of recursive loop
This commit is contained in:
@ -876,6 +876,7 @@ sub command_line_setup () {
|
||||
start_timeout => 400, # enough time create innodb tables
|
||||
|
||||
ndbcluster => 1, # ndbcluster not started
|
||||
master_opt => [],
|
||||
};
|
||||
|
||||
$master->[1]=
|
||||
@ -2140,6 +2141,14 @@ sub run_testcase ($) {
|
||||
{
|
||||
$do_restart= 1;
|
||||
}
|
||||
# Check that running master was started with same options
|
||||
# as the current test requires
|
||||
elsif (! mtr_same_opts($master->[0]->{'master_opt'},
|
||||
$tinfo->{'master_opt'}) )
|
||||
{
|
||||
$do_restart= 1;
|
||||
}
|
||||
|
||||
|
||||
if ( $do_restart )
|
||||
{
|
||||
@ -2219,6 +2228,8 @@ sub run_testcase ($) {
|
||||
report_failure_and_restart($tinfo);
|
||||
return;
|
||||
}
|
||||
# Remember options used to start
|
||||
$master->[0]->{'master_opt'}= $tinfo->{'master_opt'};
|
||||
}
|
||||
if ( $using_ndbcluster_master and ! $master->[1]->{'pid'} )
|
||||
{
|
||||
|
Reference in New Issue
Block a user