t0302: "unreadable" test needs SANITY prereq
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>
Paul Tan committed
Jun 12, 2015 at 21:29 UTC
329af6ca7d9829343846ad53423faf3e827077d6
1 file changed
+1
-1
t/t0302-credential-store.sh
+1
-1
@@ -75,7 +75,7 @@ test_expect_success 'get: use xdg file if home file has no matches' '
75
EOF
76
'
77
78
-test_expect_success POSIXPERM 'get: use xdg file if home file is unreadable' '
78
+test_expect_success POSIXPERM,SANITY 'get: use xdg file if home file is unreadable' '
79
echo "https://home-user:home-pass@example.com" >"$HOME/.git-credentials" &&
80
chmod -r "$HOME/.git-credentials" &&
81
mkdir -p "$HOME/.config/git" &&