From: Eddy Petrișor Date: Wed, 18 Apr 2018 22:35:48 GMT Subject: [RFC PATCH v4 5/9] fixup:t7406:cleanup chained submodules after test is done Message-ID: <20180418223552.18345-5-eddy.petrisor@codeaurora.org> In-Reply-To: <20180418223552.18345-1-eddy.petrisor@codeaurora.org> From: Eddy Petrișor Signed-off-by: Eddy Petrișor --- t/t7406-submodule-update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index 974f949df..c5b412c46 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -298,7 +298,9 @@ test_expect_success 'submodule update --remote --recursive --init should fetch m cd submodl2b2 && git rev-parse --verify HEAD >../../../actuall2 && test_cmp ../../../expectl2 ../../../actuall2 - ) + ) && + test_when_finished "rm submodl2b2" && + test_when_finished "rm submodl1b1" ' test_expect_success 'local config should override .gitmodules branch' ' -- 2.16.2