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;
|
||||
}
|
||||
|
||||
END
|
||||
{
|
||||
# Preserve temporary directory for this test on failure
|
||||
$File::Temp::KEEP_ALL = 1 unless Test::More->builder->is_passing;
|
||||
}
|
||||
|
||||
#
|
||||
# Helper functions
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue