diff options
author | unknown <jimw@mysql.com> | 2006-04-28 00:33:47 +0200 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2006-04-28 00:33:47 +0200 |
commit | dc101c2cd0ee4a6ffd5b62704e44b7b1cc0bd997 (patch) | |
tree | 9e67a788dd375025a54840cd799662d5576ad8db /mysql-test/mysql-test-run.pl | |
parent | c357525e427602b9a9c8c30d32698718b71c747e (diff) | |
parent | 9681b731d19030b549ec8550f26b99971d3f1e42 (diff) | |
download | mariadb-git-dc101c2cd0ee4a6ffd5b62704e44b7b1cc0bd997.tar.gz |
Merge jwinstead@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/nfstmp1/jwinstead/mysql-5.0-clean
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index e595009c283..3b29aff2892 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -255,6 +255,7 @@ our $opt_result_ext; our $opt_skip; our $opt_skip_rpl; +our $use_slaves; our $opt_skip_test; our $opt_skip_im; @@ -406,16 +407,15 @@ sub main () { my $tests= collect_test_cases($opt_suite); # Turn off NDB and other similar options if no tests use it - my ($need_ndbcluster,$need_im,$need_slave); + my ($need_ndbcluster,$need_im); foreach my $test (@$tests) { $need_ndbcluster||= $test->{ndb_test}; $need_im||= $test->{component_id} eq 'im'; - $need_slave||= $test->{slave_num}; + $use_slaves||= $test->{slave_num}; } $opt_with_ndbcluster= 0 unless $need_ndbcluster; $opt_skip_im= 1 unless $need_im; - $opt_skip_rpl= 1 unless $need_slave; snapshot_setup(); initialize_servers(); @@ -974,7 +974,7 @@ sub snapshot_setup () { $master->[0]->{'path_myddir'}, $master->[1]->{'path_myddir'}); - unless ($opt_skip_rpl) + if ($use_slaves) { push @data_dir_lst, ($slave->[0]->{'path_myddir'}, $slave->[1]->{'path_myddir'}, @@ -1661,7 +1661,7 @@ sub mysql_install_db () { install_db('master', $master->[0]->{'path_myddir'}); install_db('master', $master->[1]->{'path_myddir'}); - if ( ! $opt_skip_rpl ) + if ( $use_slaves ) { install_db('slave', $slave->[0]->{'path_myddir'}); install_db('slave', $slave->[1]->{'path_myddir'}); |