diff options
author | unknown <msvensson@shellback.(none)> | 2006-03-07 20:41:04 +0100 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-03-07 20:41:04 +0100 |
commit | 9a879f89b45fe75bf072172b99630f1246a66732 (patch) | |
tree | 0bc480cae5053f74cab2eb6876684e7b453cdf11 /mysql-test/mysql-test-run.pl | |
parent | e889f9efcc0e5c9583001321a1dbd31b2ba5c371 (diff) | |
parent | 329264140a6e99f7bd97a535201b973b5cb42a9e (diff) | |
download | mariadb-git-9a879f89b45fe75bf072172b99630f1246a66732.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into shellback.(none):/home/msvensson/mysql/bug17574/my50-bug17574
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 | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index ce2dfc8f67e..c105ace789f 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1399,7 +1399,6 @@ sub ndbcluster_install () { "--initial"], "", "", "", "") ) { - mtr_error("Error ndbcluster_install"); return 1; } @@ -1606,9 +1605,19 @@ sub mysql_install_db () { if ( ndbcluster_install() ) { - # failed to install, disable usage but flag that its no ok - $opt_with_ndbcluster= 0; - $flag_ndb_status_ok= 0; + if ( $opt_force) + { + # failed to install, disable usage and flag that its no ok + mtr_report("ndbcluster_install failed, continuing without cluster"); + $opt_with_ndbcluster= 0; + $flag_ndb_status_ok= 0; + } + else + { + print "Aborting: Failed to install ndb cluster\n"; + print "To continue, re-run with '--force'.\n"; + mtr_exit(1); + } } return 0; @@ -1808,6 +1817,13 @@ sub run_testcase ($) { return; } + if ( $tinfo->{'ndb_test'} and ! $flag_ndb_status_ok ) + { + mtr_report_test_name($tinfo); + mtr_report_test_failed($tinfo); + return; + } + # ---------------------------------------------------------------------- # If not using a running servers we may need to stop and restart. # We restart in the case we have initiation scripts, server options |