summaryrefslogtreecommitdiff
path: root/mysql-test/t/system_mysql_db_fix40123.test
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-04-04 15:40:40 +0200
committerunknown <msvensson@pilot.blaudden>2007-04-04 15:40:40 +0200
commit6aa11eebc5e846d2fe9c994be90597431d230aa0 (patch)
tree01e2de8100326438108685858d9c1caf627d62e4 /mysql-test/t/system_mysql_db_fix40123.test
parent5ae0ce281c92da49216ff0a58b49686a74f84b15 (diff)
downloadmariadb-git-6aa11eebc5e846d2fe9c994be90597431d230aa0.tar.gz
Skip test cases if the script or binary they need can't be found
mysql-test/mysql-test-run.pl: Move some opt_extern hacks to same place. Remove duplicate opt_skip_im=1 if opt_extern mysql-test/t/fix_priv_tables.test: Skip test if $MYSQL_FIX_PRIVILEGE_TABLES is not set mysql-test/t/system_mysql_db_fix30020.test: Skip test if $MYSQL_FIX_SYSTEM_TABLES is not set mysql-test/t/system_mysql_db_fix40123.test: Skip test if $MYSQL_FIX_PRIVILEGE_TABLES is not set
Diffstat (limited to 'mysql-test/t/system_mysql_db_fix40123.test')
-rw-r--r--mysql-test/t/system_mysql_db_fix40123.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/system_mysql_db_fix40123.test b/mysql-test/t/system_mysql_db_fix40123.test
index 471598625d4..012d05af3b8 100644
--- a/mysql-test/t/system_mysql_db_fix40123.test
+++ b/mysql-test/t/system_mysql_db_fix40123.test
@@ -1,6 +1,13 @@
# Embedded server doesn't support external clients
--source include/not_embedded.inc
+# Don't run this test if $MYSQL_FIX_PRIVILEGE_TABLES isn't set
+# to the location of mysql_fix_privilege_tables.sql
+if (`SELECT LENGTH("$MYSQL_FIX_PRIVILEGE_TABLES") <= 0`)
+{
+ skip Test need MYSQL_FIX_PRIVILEGE_TABLES;
+}
+
#
# This is the test for mysql_fix_privilege_tables
# It checks that a system tables from mysql 4.1.23