]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/meta.t
(no commit message)
[git.ikiwiki.info.git] / t / meta.t
index 8602930bcfde2d3cf90bd7d603807288a2d0bc46..7f26a957ba4b7c9245d14cca427e3099301afa39 100755 (executable)
--- 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) = @_;
 
 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("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(
 }
 
 write_build_read_compare(