aboutsummaryrefslogtreecommitdiff
path: root/t/permalink.t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2019-02-03 12:25:20 +0000
committerSimon McVittie <smcv@debian.org>2019-02-03 12:34:46 +0000
commit2bde54c9dc0e1776882f4e0fef5750296e848c5b (patch)
tree8f783bae015e5b27b38e79fcf28e4d0a458a71e3 /t/permalink.t
parent3fe5d0acbfcb42d8c3898672db8b9b5cb4f6cec8 (diff)
downloadikiwiki-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/permalink.t')
-rwxr-xr-xt/permalink.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/permalink.t b/t/permalink.t
index 2eb557e1d..7b6b89bea 100755
--- a/t/permalink.t
+++ b/t/permalink.t
@@ -18,7 +18,7 @@ else {
--templatedir=templates));
}
-ok(! system("rm -rf t/tmp"));
+ok(! system("rm -rf t/tmp t/tinyblog/.ikiwiki"));
ok(! system("mkdir t/tmp"));
ok(! system(@command, qw(--plugin inline --url=http://example.com
--cgiurl=http://example.com/ikiwiki.cgi --rss --atom
@@ -27,6 +27,5 @@ ok(! system(@command, qw(--plugin inline --url=http://example.com
my $guid="http://example.com/post/";
ok(length `egrep '<guid.*>$guid</guid>' t/tmp/out/index.rss`);
ok(length `egrep '<id>$guid</id>' t/tmp/out/index.atom`);
-ok(! system("rm -rf t/tmp t/tinyblog/.ikiwiki"));
done_testing();