aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-10-17 02:13:54 +0200
committerTeddy Wing2020-10-17 02:16:11 +0200
commita9608c229c49bc408855ba4c1e321e2e2327163a (patch)
tree9f165ed05a5d9b8f75852113d8be272a69839ca7
parent295f77eb3ec7a0fe210ff0af7e231a0672d54b04 (diff)
downloadgit-todo-a9608c229c49bc408855ba4c1e321e2e2327163a.tar.bz2
t/104-works-outside-the-repo-root.t: Remove subdir in teardown
I wasn't clearning up the "subdir" directory created in this test. Tried adding a new test that used the same subdirectory name, which failed to create the directory because it was already created here.
-rw-r--r--t/104-works-outside-the-repo-root.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/104-works-outside-the-repo-root.t b/t/104-works-outside-the-repo-root.t
index d61b5c6..2532344 100644
--- a/t/104-works-outside-the-repo-root.t
+++ b/t/104-works-outside-the-repo-root.t
@@ -19,6 +19,7 @@
use strict;
use File::Copy;
+use File::Path qw(remove_tree);
use Test::More;
use Bin qw($BIN);
@@ -64,5 +65,8 @@ is $todos, 'git-sugdiff.rs:34: // TODO: 100-shows-todo-comments-since-fork-po
system('git checkout master');
system('git branch -D fork-point');
+chdir '..' or die $!;
+remove_tree('subdir');
+
done_testing;