When a TAP file has non-zero exit status, retain temporary directories.

Noah Misch <noah@leadboat.com>

Commit: 78a26c3edd85b439265c067c45f04ce017c2eaff
Author: Noah Misch <noah@leadboat.com>
Date: 2020-02-05T16:26:44Z
Releases: 12.2
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

Files

PathChange+/−
src/test/perl/PostgresNode.pm modified +1 −16
src/test/perl/TestLib.pm modified +7 −2

Discussion