pgsql: When a TAP file has non-zero exit status, retain temporary direc - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: When a TAP file has non-zero exit status, retain temporary direc
Date
Msg-id E1izNY9-0000Hu-6g@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
When a TAP file has non-zero exit status, retain temporary directories.

PostgresNode already retained base directories in such cases.  Stop
using $SIG{__DIE__}, which is redundant with the exit status check, in
lieu of proliferating it to TestLib.  Back-patch to 9.6, where commit
88802e068017bee8cea7a5502a712794e761c7b5 introduced retention on
failure.

Reviewed by Daniel Gustafsson.

Discussion: https://postgr.es/m/20200202170155.GA3264196@rfd.leadboat.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/887657d183fc2afcdd97bae3cdb645cbe0b59662

Modified Files
--------------
src/test/perl/PostgresNode.pm | 17 +----------------
src/test/perl/TestLib.pm      |  9 +++++++--
2 files changed, 8 insertions(+), 18 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Add note about how each partition's default value is treated, in
Next
From: Stephen Frost
Date:
Subject: Re: pgsql: Prevent running pg_basebackup as root