summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-05 12:28:23 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-05 12:28:23 +0200
commitc3e8fb57a068cf192b273d94ff6ff0f267a08ce0 (patch)
tree49578c315130275df3ecb8f796bc76863611eb21
parent4c8931294b600b2388d970e2324c4fc63ccea4b8 (diff)
downloadmariadb-git-c3e8fb57a068cf192b273d94ff6ff0f267a08ce0.tar.gz
Set the environment variable NDB_STATUS_OK to indicate that cluster is installed ok. This is actually not needed for this script as it will
skip ndb tests if cluster install failed. But provided for compatibility mysql-test/include/have_ndb.inc: Revert
-rw-r--r--mysql-test/include/have_ndb.inc1
-rwxr-xr-xmysql-test/mysql-test-run.pl13
2 files changed, 14 insertions, 0 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.pl b/mysql-test/mysql-test-run.pl
index 1ff0b57687b..d74a4e6c3be 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2665,6 +2665,19 @@ sub do_before_run_mysqltest($)
{
mtr_tofile($master->[1]->{'path_myerr'},"CURRENT_TEST: $tname\n");
}
+
+ if ( $mysql_version_id < 50000 )
+ {
+ # Set envirnoment variable NDB_STATUS_OK to 1
+ # if script decided to run mysqltest cluster _is_ installed ok
+ $ENV{'NDB_STATUS_OK'} = "1";
+ }
+ elsif ( $mysql_version_id < 50100 )
+ {
+ # Set envirnoment variable NDB_STATUS_OK to YES
+ # if script decided to run mysqltest cluster _is_ installed ok
+ $ENV{'NDB_STATUS_OK'} = "YES";
+ }
}
sub do_after_run_mysqltest($)