diff options
author | unknown <msvensson@neptunus.(none)> | 2006-10-05 13:09:06 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-10-05 13:09:06 +0200 |
commit | ddf0fa97b54f0cfd167af933c9169a1a5acfcabc (patch) | |
tree | 81968934379710656047c30bcb07da1e2a4e03bd | |
parent | c3e8fb57a068cf192b273d94ff6ff0f267a08ce0 (diff) | |
download | mariadb-git-ddf0fa97b54f0cfd167af933c9169a1a5acfcabc.tar.gz |
Print warning message if test was failed becuase of cluster install failure
Improve check of wheter test case need slave cluster
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index d74a4e6c3be..f680ed909b2 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2619,21 +2619,24 @@ sub run_testcase_check_skip_test($) return 1; } - # If test needs cluster, check that master installed ok - if ( $tinfo->{'ndb_test'} and !$clusters->[0]->{'installed_ok'} ) + if ($tinfo->{'ndb_test'}) { - mtr_report_test_name($tinfo); - mtr_report_test_failed($tinfo); - return 1; - } + foreach my $cluster (@{$clusters}) + { + last if ($opt_skip_ndbcluster_slave and + $cluster->{'name'} eq 'Slave'); - # If test needs slave cluster, check that it installed ok - if ( $tinfo->{'ndb_test'} and $tinfo->{'slave_num'} and - !$clusters->[1]->{'installed_ok'} ) - { - mtr_report_test_name($tinfo); - mtr_report_test_failed($tinfo); - return 1; + # If test needs this cluster, check it was installed ok + if ( !$cluster->{'installed_ok'} ) + { + mtr_tofile($path_timefile, + "Test marked as failed because $cluster->{'name'} " . + "was not installed ok!"); + mtr_report_test_name($tinfo); + mtr_report_test_failed($tinfo); + return 1; + } + } } return 0; |