mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 11:41:19 +02:00
TAP tests: retain temp dirs on test failure
This makes it easier to study the reason for the failure. Author: Kyotaro Horiguchi Reviewed-By: Craig Ringer
This commit is contained in:
parent
212bba93ce
commit
88802e0680
@ -107,6 +107,12 @@ INIT
|
|||||||
autoflush TESTLOG 1;
|
autoflush TESTLOG 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
END
|
||||||
|
{
|
||||||
|
# Preserve temporary directory for this test on failure
|
||||||
|
$File::Temp::KEEP_ALL = 1 unless Test::More->builder->is_passing;
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Helper functions
|
# Helper functions
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user