From 068fe469d432c5e4a0f36d7e2ac72e3bb7c6131b Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 22 May 2011 22:21:56 -0700 Subject: remove a cached build dir before the test --- t/008_git_clone.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/008_git_clone.t') diff --git a/t/008_git_clone.t b/t/008_git_clone.t index c4935ce..6e33018 100644 --- a/t/008_git_clone.t +++ b/t/008_git_clone.t @@ -20,6 +20,8 @@ use Dancer::Test; use Dancer::Config qw/setting/; use File::Spec::Functions; use File::Copy::Recursive qw/dircopy/; +use File::Path qw/rmtree/; + my $hook_data = catfile(qw/t data hook_data.yml/); my $content = LoadFile($hook_data); @@ -40,6 +42,8 @@ setting plugins => { } }; +rmtree(catfile(qw/t tmp build testing/)); + if (can_run('git')){ my $gitrepo = "t/data/testing"; -- cgit v1.2.3