]> sipb.mit.edu Git - ikiwiki.git/commitdiff
permalink test: start by deleting t/tmp
authorSimon McVittie <smcv@debian.org>
Sun, 24 Feb 2013 13:18:34 +0000 (13:18 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 24 Feb 2013 13:18:34 +0000 (13:18 +0000)
Otherwise, tests that don't end by deleting t/tmp (which is a useful
change when debugging a failing test) would cause this one to fail.

t/permalink.t

index 81d4d18206e860f672f7689222ef45c526dcc0a5..36be984c56fd80aa88796d65bb98dee64f06fe23 100755 (executable)
@@ -3,6 +3,7 @@ use warnings;
 use strict;
 use Test::More 'no_plan';
 
 use strict;
 use Test::More 'no_plan';
 
+ok(! system("rm -rf t/tmp"));
 ok(! system("mkdir t/tmp"));
 ok(! system("make -s ikiwiki.out"));
 ok(! system("perl -I. ./ikiwiki.out -plugin inline -url=http://example.com -cgiurl=http://example.com/ikiwiki.cgi -rss -atom -underlaydir=underlays/basewiki -set underlaydirbase=underlays -templatedir=templates t/tinyblog t/tmp/out"));
 ok(! system("mkdir t/tmp"));
 ok(! system("make -s ikiwiki.out"));
 ok(! system("perl -I. ./ikiwiki.out -plugin inline -url=http://example.com -cgiurl=http://example.com/ikiwiki.cgi -rss -atom -underlaydir=underlays/basewiki -set underlaydirbase=underlays -templatedir=templates t/tinyblog t/tmp/out"));