From 83decaa0f9a56718ba65728f87344b29b64d2689 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Wed, 11 Sep 2019 13:08:16 +0900 Subject: [PATCH] Fix 028.watchdog_enable_consensus_with_half_votes test script. pcp_watchdog_node needs to have -h option to point to UNIX socket directory if it is not the standard (/tmp) place. --- .../028.watchdog_enable_consensus_with_half_votes/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh b/src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh index e508e01ce..8116e4fa7 100755 --- a/src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh +++ b/src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh @@ -34,12 +34,12 @@ function wait_for_watchdog_startup # retun 0 if quorum exists. function quorum_exists { - $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1 + $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1 if [ $? != 0 ];then echo "pcp_watchdog_info is not still available" for i in 1 2 3 4 5 do - $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1 + $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1 if [ $? = 0 ];then break; fi @@ -48,7 +48,7 @@ function quorum_exists done fi - $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null + $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null } # shutdown half of nodes for even total number of nodes. -- 2.39.5