about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 22:21:56 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-22 22:21:56 -0700
commit068fe469d432c5e4a0f36d7e2ac72e3bb7c6131b (patch)
tree911295e737558a5518b26411238038d0a8ea08cb
parentAdd a test file for git cloning (diff)
downloadjitterbug-068fe469d432c5e4a0f36d7e2ac72e3bb7c6131b.tar.gz
remove a cached build dir before the test
-rw-r--r--t/008_git_clone.t4
1 files changed, 4 insertions, 0 deletions
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";