From a9608c229c49bc408855ba4c1e321e2e2327163a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 17 Oct 2020 02:13:54 +0200 Subject: 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. --- t/104-works-outside-the-repo-root.t | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3