Attempt to fix 028.watchdog_enable_consensus_with_half_votes.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 15 Sep 2019 04:00:21 +0000 (13:00 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 15 Sep 2019 04:00:21 +0000 (13:00 +0900)
Still get password does not match error. Let's change hostname arg of
watchdog_info to localhost.

src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh

index 3c7c39b95cf1193a0b067905140e5b8dd7194d05..38ee7356b847f3c507c065d8ad91484a5dd649f6 100755 (executable)
@@ -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 -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1
+    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h localhost -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 -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1
+           $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h localhost -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 -h $PGSOCKET_DIR -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null
+    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h localhost -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null
 }
 
 # shutdown half of nodes for even total number of nodes.