Fix regression test 075.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 12 Jan 2022 10:42:01 +0000 (19:42 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 12 Jan 2022 10:42:01 +0000 (19:42 +0900)
The test reported success even if pgpool does not start up.
Problem reported and patch provided by Qiang Lingjie.
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2022-January/004086.html

src/test/regression/tests/075.detach_primary_left_down_node/test.sh

index c47f88eb6fa799caad9d3ffe35593415f22b9469..05fdc5317e7c0ae579d465daf34bf31d842b69f0 100755 (executable)
@@ -33,7 +33,7 @@ date
 cnt=60
 while [ $cnt -gt 0 ]
 do
-    $PGBIN/psql -c "show pool_nodes" test|grep down
+    $PGBIN/psql -c "show pool_nodes" test 2>&1|grep -E 'down|error'
     if [ $? != 0 ];then
        echo "test succeeded"
        ./shutdownall