summaryrefslogtreecommitdiff
path: root/t/t0302-credential-store.sh
diff options
context:
space:
mode:
authorPaul Tan <pyokagan@gmail.com>2015-06-12 13:29:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-12 20:57:51 (GMT)
commit329af6ca7d9829343846ad53423faf3e827077d6 (patch)
treeec61bb6243a41a9e4a2217224a7df1a02f2f00ea /t/t0302-credential-store.sh
parentefee5981d3d5d72f9cc7208ba7c5e9ce4afc8598 (diff)
downloadgit-329af6ca7d9829343846ad53423faf3e827077d6.zip
git-329af6ca7d9829343846ad53423faf3e827077d6.tar.gz
git-329af6ca7d9829343846ad53423faf3e827077d6.tar.bz2
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>
Diffstat (limited to 't/t0302-credential-store.sh')
-rwxr-xr-xt/t0302-credential-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0302-credential-store.sh b/t/t0302-credential-store.sh
index 0979df9..1d8d1f2 100755
--- a/t/t0302-credential-store.sh
+++ b/t/t0302-credential-store.sh
@@ -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" &&