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/find_src_files.t | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 't/find_src_files.t') diff --git a/t/find_src_files.t b/t/find_src_files.t index a3742db75..9dbf6eafe 100755 --- a/t/find_src_files.t +++ b/t/find_src_files.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 20; +use Test::More; BEGIN { use_ok("IkiWiki"); } BEGIN { use_ok("IkiWiki::Render"); } @@ -91,7 +91,4 @@ test_src_files(\@list, "deep dir symlink in srcdir skipped"); system("ln -sf /etc/ $config{underlaydir}/ikiwiki/symdir"); test_src_files(\@list, "deep dir symlink in underlaydir skipped"); - - - -cleanup(); +done_testing; -- cgit v1.2.3