summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2005-02-07 19:31:02 +0100
committertomas@poseidon.ndb.mysql.com <>2005-02-07 19:31:02 +0100
commit9a1e257087ba6b0b8e274a228f39c2a123859f85 (patch)
tree3259c8bd0aadaf79965e86289c2ad159a66d6ee9 /mysql-test
parent3fe60486e4d56138e8e9e1ffbc91a4c221eb6102 (diff)
parentee985f9a7ea59b1c97ac180b0ca706b5ec685307 (diff)
downloadmariadb-git-9a1e257087ba6b0b8e274a228f39c2a123859f85.tar.gz
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/include/have_ndb.inc1
-rw-r--r--mysql-test/mysql-test-run.sh23
2 files changed, 18 insertions, 6 deletions
diff --git a/mysql-test/include/have_ndb.inc b/mysql-test/include/have_ndb.inc
index 84e60657876..9b85197abe8 100644
--- a/mysql-test/include/have_ndb.inc
+++ b/mysql-test/include/have_ndb.inc
@@ -1,3 +1,4 @@
+--exec test x$NDB_STATUS_OK = x1
-- require r/have_ndb.require
disable_query_log;
show variables like "have_ndbcluster";
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index bc3a266208a..39d3f0492c2 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -693,6 +693,8 @@ export NDB_MGM
export NDB_BACKUP_DIR
export NDB_TOOLS_OUTPUT
export PURIFYOPTIONS
+NDB_STATUS_OK=1
+export NDB_STATUS_OK
MYSQL_TEST_ARGS="--no-defaults --socket=$MASTER_MYSOCK --database=$DB \
--user=$DBUSER --password=$DBPASSWD --silent -v --skip-safemalloc \
@@ -1055,7 +1057,15 @@ start_ndbcluster()
else
NDBCLUSTER_EXTRA_OPTS="--small"
fi
- ./ndb/ndbcluster $NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --initial || exit 1
+ ./ndb/ndbcluster $NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --initial || NDB_STATUS_OK=0
+ if [ x$NDB_STATUS_OK != x1 ] ; then
+ if [ x$FORCE != x1 ] ; then
+ exit 1
+ fi
+ USE_NDBCLUSTER=
+ return
+ fi
+
NDB_CONNECTSTRING="host=localhost:$NDBCLUSTER_PORT"
else
NDB_CONNECTSTRING="$USE_RUNNING_NDBCLUSTER"
@@ -1620,6 +1630,12 @@ run_testcase ()
fi
fi
fi
+
+ if [ "x$START_AND_EXIT" = "x1" ] ; then
+ echo "Servers started, exiting"
+ exit
+ fi
+
cd $MYSQL_TEST_DIR
if [ -f $tf ] ; then
@@ -1757,11 +1773,6 @@ then
mysql_loadstd
fi
-if [ "x$START_AND_EXIT" = "x1" ] ; then
- echo "Servers started, exiting"
- exit
-fi
-
$ECHO "Starting Tests"
#