Test: stabilize 029.cert_passphrase regression test.
authorTatsuo Ishii <ishii@postgresql.org>
Sun, 8 Jun 2025 11:25:48 +0000 (20:25 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sun, 8 Jun 2025 11:25:48 +0000 (20:25 +0900)
When ssl_passphrase_command is not valid, the error message is
typically "bad decrypt" but it seems sometimes "wrong tag".

src/test/regression/tests/029.cert_passphrase/test.sh

index 236a9807fe762a1ac1b3bd55df7446541a6f401e..7d037c1068f7a57fcebe8d848b640b003f3fa57f 100755 (executable)
@@ -103,7 +103,9 @@ wait_for_pgpool_startup
 
 $PSQL -h localhost -c "select 1" test
 
-grep "could not load private key file" log/pgpool.log|grep "bad decrypt"
+# The error message is typically "bad decrypt".
+# But it seems sometimes "wrong tag".
+grep "could not load private key file" log/pgpool.log|egrep "bad decrypt|wrong tag"
 if [ $? != 0 ];then
     echo "Checking cert with invalid password failed."
     ./shutdownall