Skip to content

Commit f09129c

Browse files
author
He Zhenxing
committed
Skip semisync test if the plugin-dir is not set to semisync plugin dir
1 parent 240dbc2 commit f09129c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mysql-test/include/have_semisync_plugin.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ if (`select LENGTH('$SEMISYNC_MASTER_PLUGIN') = 0`)
1313
{
1414
skip Need semisync plugins;
1515
}
16+
17+
#
18+
# Check if --plugin-dir was setup for semisync
19+
#
20+
if (`SELECT CONCAT('--plugin-dir=', @@plugin_dir) != '$SEMISYNC_PLUGIN_OPT'`) {
21+
--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)
22+
}

0 commit comments

Comments
 (0)