summaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-05-03 18:54:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-03 20:20:27 (GMT)
commitcadfbef98032fbc6874b5efd70d1e33dbeb4640d (patch)
treedd9e7b698cd6e1d51fcd0eae30ddb490d7000cfa /t/t7300-clean.sh
parente46579643d56162299b1756b70d418005351b256 (diff)
downloadgit-cadfbef98032fbc6874b5efd70d1e33dbeb4640d.zip
git-cadfbef98032fbc6874b5efd70d1e33dbeb4640d.tar.gz
git-cadfbef98032fbc6874b5efd70d1e33dbeb4640d.tar.bz2
t7300: mark test with SANITY
The test runs `chmod 0` on a file to test a case where Git fails to read it, but that would not work if it is run as root. Reported-by: Jan Keromnes <janx@linux.com> Fix-proposed-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-xt/t7300-clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 86ceb38..b89fd2a 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -495,7 +495,7 @@ test_expect_success 'should not clean submodules' '
test_path_is_missing to_clean
'
-test_expect_success POSIXPERM 'should avoid cleaning possible submodules' '
+test_expect_success POSIXPERM,SANITY 'should avoid cleaning possible submodules' '
rm -fr to_clean possible_sub1 &&
mkdir to_clean possible_sub1 &&
test_when_finished "rm -rf possible_sub*" &&