Content-Length: 263631 | pFad | https://github.com/postgrespro/postgres/commit/7132810cd3a286d2b0676e6a9a3f466fc14a7d95

E7 TAP: Retain tempdirs for failed tests · postgrespro/postgres@7132810 · GitHub
Skip to content

Commit 7132810

Browse files
committed
TAP: Retain tempdirs for failed tests
If a test fails temporary directories created for that test are retained - in particular, PostgresNode data directories. This makes debugging much easier. By Kyotaro Horiguchi
1 parent 574526a commit 7132810

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/perl/TestLib.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ INIT
107107
autoflush TESTLOG 1;
108108
}
109109

110+
END
111+
{
112+
# Preserve temporary directory for this test on failure
113+
$File::Temp::KEEP_ALL = 1 unless Test::More->builder->is_passing;
114+
}
115+
110116
#
111117
# Helper functions
112118
#

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/7132810cd3a286d2b0676e6a9a3f466fc14a7d95

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy