Commit 88802e06 authored by Alvaro Herrera's avatar Alvaro Herrera

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
parent 212bba93
......@@ -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
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment