diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 22:21:56 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-22 22:21:56 -0700 |
commit | 068fe469d432c5e4a0f36d7e2ac72e3bb7c6131b (patch) | |
tree | 911295e737558a5518b26411238038d0a8ea08cb | |
parent | Add a test file for git cloning (diff) | |
download | jitterbug-068fe469d432c5e4a0f36d7e2ac72e3bb7c6131b.tar.gz |
remove a cached build dir before the test
Diffstat (limited to '')
-rw-r--r-- | t/008_git_clone.t | 4 |
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"; |