Skip to contentSkip to conversation

t0302: "unreadable" test needs SANITY prereq

PATCH In review Paul Tan 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Paul Tan

author
#0 lore raw

PATCH 1/1 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.

---
 t/t0302-credential-store.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t0302-credential-store.sh +1 -1
index 0979df9..1d8d1f2 100755
@@ -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:[email protected]" >"$HOME/.git-credentials" &&
 	chmod -r "$HOME/.git-credentials" &&
 	mkdir -p "$HOME/.config/git" &&
Signature · 1 line
2.1.4
#1 lore raw
Quoted 2 lines · Paul Tan

The test expects that "chmod -r ~/.git-credentials" would make it unreadable to the user, and thus needs the SANITY prerequisite.

Yup, looks obviously correct to me. Thanks for a quick turnaround.

-Peff