pgsql: Use safe_psql in SSL test setup to avoid silent failure

Started by Daniel Gustafssonabout 2 months ago1 messagescommitters
Jump to latest
#1Daniel Gustafsson
dgustafsson@postgresql.org

Use safe_psql in SSL test setup to avoid silent failure

When setting up the cluster for SSL tests, use safe_psql instead of plain
psql calls to ensure the processing exits on error. There is no evidence
of this happening in the buildfarm, it's merely a precaution.

Reported-by: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Rui Zhao <zhaorui126@gmail.com>
Discussion: /messages/by-id/CAOYmi+mAtEn4wN3xx=r4TaY5AHy9_q9XncM8YQLhofE3op0SvA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e9aea0189d0f75e5ccd52ccb06e63cc87597dd64

Modified Files
--------------
src/test/ssl/t/SSL/Server.pm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)