diff options
author | unknown <msvensson@shellback.(none)> | 2006-05-18 19:52:43 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-05-18 19:52:43 +0200 |
commit | 20091c5b86d5a5d0b3ac3aba806286398e094825 (patch) | |
tree | 901ff4ad5d35b46ddcd6b439307b4d5474f79c6e /mysql-test/mysql-test-run.pl | |
parent | c295bd8082f007085955791b7c80a3cfd48fe8ba (diff) | |
download | mariadb-git-20091c5b86d5a5d0b3ac3aba806286398e094825.tar.gz |
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
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index c14e6d4d534..704baeeec94 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -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'} ) { |