Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88802e0

Browse filesBrowse files
committed
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
1 parent 212bba9 commit 88802e0
Copy full SHA for 88802e0

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎src/test/perl/TestLib.pm

Copy file name to clipboardExpand all lines: src/test/perl/TestLib.pm
+6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.