diff options
author | Simon McVittie <smcv@debian.org> | 2019-02-03 12:25:20 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-02-03 12:34:46 +0000 |
commit | 2bde54c9dc0e1776882f4e0fef5750296e848c5b (patch) | |
tree | 8f783bae015e5b27b38e79fcf28e4d0a458a71e3 /t/libdirs.t | |
parent | 3fe5d0acbfcb42d8c3898672db8b9b5cb4f6cec8 (diff) | |
download | ikiwiki-2bde54c9dc0e1776882f4e0fef5750296e848c5b.tar ikiwiki-2bde54c9dc0e1776882f4e0fef5750296e848c5b.tar.gz |
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 <smcv@debian.org>
Diffstat (limited to 't/libdirs.t')
-rwxr-xr-x | t/libdirs.t | 4 |
1 files changed, 1 insertions, 3 deletions
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; |