From: Paul Tan Date: Fri, 12 Jun 2015 13:29:58 +0000 (+0800) Subject: t0302: "unreadable" test needs SANITY prereq X-Git-Tag: v2.4.6~6^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/329af6ca7d9829343846ad53423faf3e827077d6 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 Signed-off-by: Paul Tan Signed-off-by: Junio C Hamano --- diff --git a/t/t0302-credential-store.sh b/t/t0302-credential-store.sh index 0979df93a1..1d8d1f210b 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" &&