summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-05-23 15:59:52 +0200
committerunknown <msvensson@shellback.(none)>2006-05-23 15:59:52 +0200
commit0a745f26f7a67878b38fbef667360a7de47eb97f (patch)
treee3c96ef0afa9e2c9f6eaad066d8d240b2c146fdc /mysql-test/mysql-test-run.pl
parenteffac570d493ab2de1f12f30a842c7b2095ee51a (diff)
downloadmariadb-git-0a745f26f7a67878b38fbef667360a7de47eb97f.tar.gz
Updated after review
mysql-test/lib/mtr_process.pl: Fix spelling errors mysql-test/lib/mtr_report.pl: Fix spelling errors mysql-test/mysql-test-run.pl: Remove debug code Fix spelling errors Check if slave cluster installed ok if test needs it
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl26
1 files changed, 12 insertions, 14 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 7b425e16c2b..c26c73c1800 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1602,18 +1602,7 @@ sub ndbcluster_start_install ($) {
s/CHOOSE_PORT_MGM/$cluster->{'port'}/;
s/CHOOSE_DiskPageBufferMemory/$ndb_pbmem/;
-# if ( /^\s*$/ )
-# {
-# print OUT "\n";
-# }
-# elsif (/;$/)
-# {
-# print OUT "$_\n";
-# }
-# else
-# {
- print OUT "$_ \n";
-# }
+ print OUT "$_ \n";
}
close OUT;
close IN;
@@ -2178,13 +2167,22 @@ sub run_testcase ($) {
return;
}
- # FIXME if test need slave cluster, check if that is installed_ok
+ # If test needs cluster, check that master installed ok
if ( $tinfo->{'ndb_test'} and $clusters->[0]->{'installed_ok'} eq "NO" )
{
mtr_report_test_name($tinfo);
mtr_report_test_failed($tinfo);
return;
- }
+ }
+
+ # If test needs slave cluster, check that it installed ok
+ if ( $tinfo->{'ndb_test'} and $tinfo->{'slave_num'} and
+ $clusters->[1]->{'installed_ok'} eq "NO" )
+ {
+ mtr_report_test_name($tinfo);
+ mtr_report_test_failed($tinfo);
+ return;
+ }
run_testcase_stop_servers($tinfo);