summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Zhenxing <zhenxing.he@sun.com>2009-10-23 21:26:17 +0800
committerHe Zhenxing <zhenxing.he@sun.com>2009-10-23 21:26:17 +0800
commitf09129c6beecb20da475b41af1bba948abf826c8 (patch)
tree7abc7ffd1c7861ceecbe7c9cba5147693652c4a6
parent240dbc28f702a6d2e27b6e7411853cb2d7960927 (diff)
downloadmariadb-git-f09129c6beecb20da475b41af1bba948abf826c8.tar.gz
Skip semisync test if the plugin-dir is not set to semisync plugin dir
-rw-r--r--mysql-test/include/have_semisync_plugin.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/include/have_semisync_plugin.inc b/mysql-test/include/have_semisync_plugin.inc
index 38e2fcd6115..37c9a744b6a 100644
--- a/mysql-test/include/have_semisync_plugin.inc
+++ b/mysql-test/include/have_semisync_plugin.inc
@@ -13,3 +13,10 @@ if (`select LENGTH('$SEMISYNC_MASTER_PLUGIN') = 0`)
{
skip Need semisync plugins;
}
+
+#
+# Check if --plugin-dir was setup for semisync
+#
+if (`SELECT CONCAT('--plugin-dir=', @@plugin_dir) != '$SEMISYNC_PLUGIN_OPT'`) {
+ --skip SEMISYNC plugin requires that --plugin-dir is set to the semisync plugin dir (either the .opt file does not contain \$SEMISYNC_PLUGIN_OPT or another plugin is in use)
+}