]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t2400: cleanup created worktree in test
authorJacob Abel <jacobabel@nullpo.dev>
Wed, 17 May 2023 21:48:28 +0000 (21:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 May 2023 22:55:24 +0000 (15:55 -0700)
Signed-off-by: Jacob Abel <jacobabel@nullpo.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2400-worktree-add.sh

index d587e0b20db22423ef1a1d204076c50b769e0375..a3f108347a629b4a3b4e0ec0855458e1e1ffa50a 100755 (executable)
@@ -326,6 +326,7 @@ test_expect_success 'add -B' '
 '
 
 test_expect_success 'add --quiet' '
+       test_when_finished "git worktree remove -f -f another-worktree" &&
        git worktree add --quiet another-worktree main 2>actual &&
        test_must_be_empty actual
 '