]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0302: "unreadable" test needs SANITY prereq
authorPaul Tan <pyokagan@gmail.com>
Fri, 12 Jun 2015 13:29:58 +0000 (21:29 +0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2015 20:57:51 +0000 (13:57 -0700)
The test expects that "chmod -r ~/.git-credentials" would make it
unreadable to the user, and thus needs the SANITY prerequisite.

Reported-by: Jean-Yves LENHOF <jean-yves@lenhof.eu.org>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0302-credential-store.sh

index 0979df93a1062020e92fa55a780678e20db4f9db..1d8d1f210b99e888fa39da14f73aef19eaf338b5 100755 (executable)
@@ -75,7 +75,7 @@ test_expect_success 'get: use xdg file if home file has no matches' '
        EOF
 '
 
-test_expect_success POSIXPERM 'get: use xdg file if home file is unreadable' '
+test_expect_success POSIXPERM,SANITY 'get: use xdg file if home file is unreadable' '
        echo "https://home-user:home-pass@example.com" >"$HOME/.git-credentials" &&
        chmod -r "$HOME/.git-credentials" &&
        mkdir -p "$HOME/.config/git" &&