From a02972d8206e1f1d01618ef065f47a32e1749ac7 Mon Sep 17 00:00:00 2001 From: He Zhenxing Date: Fri, 23 Oct 2009 21:26:17 +0800 Subject: [PATCH] Skip semisync test if the plugin-dir is not set to semisync plugin dir --- mysql-test/include/have_semisync_plugin.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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) +}