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/meta.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/meta.t') diff --git a/t/meta.t b/t/meta.t index 8602930bc..7f26a957b 100755 --- a/t/meta.t +++ b/t/meta.t @@ -28,11 +28,11 @@ push @command, $srcdir, $destdir; sub write_build_read_compare { my ($pagename, $input, $expected_output) = @_; + ok(! system("rm -rf $tmp"), q{setup}); ok(! system("mkdir -p $srcdir"), q{setup}); writefile("$pagename.mdwn", $srcdir, $input); ok(! system(@command), q{build}); like(readfile("$destdir/$pagename/index.html"), $expected_output); - ok(! system("rm -rf $tmp"), q{teardown}); } write_build_read_compare( -- cgit v1.2.3