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
pull/11/head
Alvaro Herrera 10 years ago
parent 212bba93ce
commit 88802e0680
  1. 6
      src/test/perl/TestLib.pm

@ -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…
Cancel
Save