From 2bde54c9dc0e1776882f4e0fef5750296e848c5b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 3 Feb 2019 12:25:20 +0000 Subject: t: Consistently remove temp directory before testing, not after When a test fails, it's useful to be able to inspect the output. Signed-off-by: Simon McVittie --- t/libdirs.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 't/libdirs.t') diff --git a/t/libdirs.t b/t/libdirs.t index 906a54105..994ceb67d 100755 --- a/t/libdirs.t +++ b/t/libdirs.t @@ -6,6 +6,7 @@ use File::Path qw(make_path remove_tree); BEGIN { use_ok("IkiWiki"); } +remove_tree("t/tmp"); make_path("t/tmp/libdir"); make_path("t/tmp/libdirs"); make_path("t/tmp/libdirs/1"); @@ -36,7 +37,4 @@ ok(grep { m/^ext_plugin_in_libdir$/ } @plugins); ok(grep { m/^ext_plugin_in_libdir_1$/ } @plugins); ok(grep { m/^ext_plugin_in_libdir_2$/ } @plugins); -remove_tree("t/tmp/libdir"); -remove_tree("t/tmp/libdirs"); - done_testing; -- cgit v1.2.3