t2026 needs procondition SANITY
authorTorsten Bögershausen <tboegi@web.de>
Tue, 27 Jan 2015 15:38:49 +0000 (16:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Jan 2015 22:20:47 +0000 (14:20 -0800)
When running t0026 as root 'prune directories with unreadable gitdir' fails.
Skip this test if SANITY is not set (the use of POSIXPERM is wrong here)

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2026-prune-linked-checkouts.sh
index 170aefe3e694d3a5ef2da443875ed44e848e757e..2936d52a9c7f860ea9fe3c195b18e9891fc5908f 100755 (executable)
@@ -33,7 +33,7 @@ EOF
        ! test -d .git/worktrees
 '
 
        ! test -d .git/worktrees
 '
 
-test_expect_success POSIXPERM 'prune directories with unreadable gitdir' '
+test_expect_success SANITY 'prune directories with unreadable gitdir' '
        mkdir -p .git/worktrees/def/abc &&
        : >.git/worktrees/def/def &&
        : >.git/worktrees/def/gitdir &&
        mkdir -p .git/worktrees/def/abc &&
        : >.git/worktrees/def/def &&
        : >.git/worktrees/def/gitdir &&