Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Skip tests that require a filesystem that obeys POSIX permissions
author
Johannes Sixt
<j6t@kdbg.org>
Fri, 13 Mar 2009 21:55:27 +0000
(22:55 +0100)
committer
Johannes Sixt
<j6t@kdbg.org>
Sun, 22 Mar 2009 16:26:44 +0000
(17:26 +0100)
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t0004-unwritable.sh
patch
|
blob
|
history
t/t1301-shared-repo.sh
patch
|
blob
|
history
t/t3700-add.sh
patch
|
blob
|
history
t/t7503-pre-commit-hook.sh
patch
|
blob
|
history
t/t7504-commit-msg-hook.sh
patch
|
blob
|
history
t/test-lib.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2718e85
)
diff --git
a/t/t0004-unwritable.sh
b/t/t0004-unwritable.sh
index 63e1217e7162435c3da8ec7984b5f6a53b3a10e2..2342ac5788a9976b591cb78593279f092d1dc2f6 100755
(executable)
--- a/
t/t0004-unwritable.sh
+++ b/
t/t0004-unwritable.sh
@@
-15,7
+15,7
@@
test_expect_success setup '
'
'
-test_expect_success 'write-tree should notice unwritable repository' '
+test_expect_success
POSIXPERM
'write-tree should notice unwritable repository' '
(
chmod a-w .git/objects .git/objects/?? &&
(
chmod a-w .git/objects .git/objects/?? &&
@@
-27,7
+27,7
@@
test_expect_success 'write-tree should notice unwritable repository' '
'
'
-test_expect_success 'commit should notice unwritable repository' '
+test_expect_success
POSIXPERM
'commit should notice unwritable repository' '
(
chmod a-w .git/objects .git/objects/?? &&
(
chmod a-w .git/objects .git/objects/?? &&
@@
-39,7
+39,7
@@
test_expect_success 'commit should notice unwritable repository' '
'
'
-test_expect_success 'update-index should notice unwritable repository' '
+test_expect_success
POSIXPERM
'update-index should notice unwritable repository' '
(
echo 6O >file &&
(
echo 6O >file &&
@@
-52,7
+52,7
@@
test_expect_success 'update-index should notice unwritable repository' '
'
'
-test_expect_success 'add should notice unwritable repository' '
+test_expect_success
POSIXPERM
'add should notice unwritable repository' '
(
echo b >file &&
(
echo b >file &&
diff --git
a/t/t1301-shared-repo.sh
b/t/t1301-shared-repo.sh
index 653362ba221ee017512264c83a216b1ad1723bcd..dc4485409dd5e5f28d07c71c2decce1f35237bf4 100755
(executable)
--- a/
t/t1301-shared-repo.sh
+++ b/
t/t1301-shared-repo.sh
@@
-26,7
+26,7
@@
modebits () {
for u in 002 022
do
for u in 002 022
do
- test_expect_success "shared=1 does not clear bits preset by umask $u" '
+ test_expect_success
POSIXPERM
"shared=1 does not clear bits preset by umask $u" '
mkdir sub && (
cd sub &&
umask $u &&
mkdir sub && (
cd sub &&
umask $u &&
@@
-54,7
+54,7
@@
test_expect_success 'shared=all' '
test 2 = $(git config core.sharedrepository)
'
test 2 = $(git config core.sharedrepository)
'
-test_expect_success 'update-server-info honors core.sharedRepository' '
+test_expect_success
POSIXPERM
'update-server-info honors core.sharedRepository' '
: > a1 &&
git add a1 &&
test_tick &&
: > a1 &&
git add a1 &&
test_tick &&
@@
-85,7
+85,7
@@
do
git config core.sharedrepository "$u" &&
umask 0277 &&
git config core.sharedrepository "$u" &&
umask 0277 &&
- test_expect_success "shared = $u ($y) ro" '
+ test_expect_success
POSIXPERM
"shared = $u ($y) ro" '
rm -f .git/info/refs &&
git update-server-info &&
rm -f .git/info/refs &&
git update-server-info &&
@@
-97,7
+97,7
@@
do
'
umask 077 &&
'
umask 077 &&
- test_expect_success "shared = $u ($x) rw" '
+ test_expect_success
POSIXPERM
"shared = $u ($x) rw" '
rm -f .git/info/refs &&
git update-server-info &&
rm -f .git/info/refs &&
git update-server-info &&
@@
-111,7
+111,7
@@
do
done
done
-test_expect_success 'git reflog expire honors core.sharedRepository' '
+test_expect_success
POSIXPERM
'git reflog expire honors core.sharedRepository' '
git config core.sharedRepository group &&
git reflog expire --all &&
actual="$(ls -l .git/logs/refs/heads/master)" &&
git config core.sharedRepository group &&
git reflog expire --all &&
actual="$(ls -l .git/logs/refs/heads/master)" &&
diff --git
a/t/t3700-add.sh
b/t/t3700-add.sh
index e98f9825cf0689182b66814b76ad86049dbea4c2..dc17d9f7153d7bea4928503b79a5fdee58bce945 100755
(executable)
--- a/
t/t3700-add.sh
+++ b/
t/t3700-add.sh
@@
-179,7
+179,7
@@
test_expect_success 'git add --refresh' '
test -z "`git diff-index HEAD -- foo`"
'
test -z "`git diff-index HEAD -- foo`"
'
-test_expect_success 'git add should fail atomically upon an unreadable file' '
+test_expect_success
POSIXPERM
'git add should fail atomically upon an unreadable file' '
git reset --hard &&
date >foo1 &&
date >foo2 &&
git reset --hard &&
date >foo1 &&
date >foo2 &&
@@
-190,7
+190,7
@@
test_expect_success 'git add should fail atomically upon an unreadable file' '
rm -f foo2
rm -f foo2
-test_expect_success 'git add --ignore-errors' '
+test_expect_success
POSIXPERM
'git add --ignore-errors' '
git reset --hard &&
date >foo1 &&
date >foo2 &&
git reset --hard &&
date >foo1 &&
date >foo2 &&
@@
-201,7
+201,7
@@
test_expect_success 'git add --ignore-errors' '
rm -f foo2
rm -f foo2
-test_expect_success 'git add (add.ignore-errors)' '
+test_expect_success
POSIXPERM
'git add (add.ignore-errors)' '
git config add.ignore-errors 1 &&
git reset --hard &&
date >foo1 &&
git config add.ignore-errors 1 &&
git reset --hard &&
date >foo1 &&
@@
-212,7
+212,7
@@
test_expect_success 'git add (add.ignore-errors)' '
'
rm -f foo2
'
rm -f foo2
-test_expect_success 'git add (add.ignore-errors = false)' '
+test_expect_success
POSIXPERM
'git add (add.ignore-errors = false)' '
git config add.ignore-errors 0 &&
git reset --hard &&
date >foo1 &&
git config add.ignore-errors 0 &&
git reset --hard &&
date >foo1 &&
diff --git
a/t/t7503-pre-commit-hook.sh
b/t/t7503-pre-commit-hook.sh
index b06909599564a1c8afa027b0f9c71ef6bb61d6e4..8528f64c8d1491fd3c279f030b6f8aee2050cdf7 100755
(executable)
--- a/
t/t7503-pre-commit-hook.sh
+++ b/
t/t7503-pre-commit-hook.sh
@@
-69,7
+69,7
@@
test_expect_success '--no-verify with failing hook' '
'
chmod -x "$HOOK"
'
chmod -x "$HOOK"
-test_expect_success 'with non-executable hook' '
+test_expect_success
POSIXPERM
'with non-executable hook' '
echo "content" >> file &&
git add file &&
echo "content" >> file &&
git add file &&
@@
-77,7
+77,7
@@
test_expect_success 'with non-executable hook' '
'
'
-test_expect_success '--no-verify with non-executable hook' '
+test_expect_success
POSIXPERM
'--no-verify with non-executable hook' '
echo "more content" >> file &&
git add file &&
echo "more content" >> file &&
git add file &&
diff --git
a/t/t7504-commit-msg-hook.sh
b/t/t7504-commit-msg-hook.sh
index 47680e6df41c2bc14f23514b010a8aefb3fedcd7..1f53ea8090355c9a351da1983388e1a49fd88ae3 100755
(executable)
--- a/
t/t7504-commit-msg-hook.sh
+++ b/
t/t7504-commit-msg-hook.sh
@@
-136,7
+136,7
@@
test_expect_success '--no-verify with failing hook (editor)' '
'
chmod -x "$HOOK"
'
chmod -x "$HOOK"
-test_expect_success 'with non-executable hook' '
+test_expect_success
POSIXPERM
'with non-executable hook' '
echo "content" >> file &&
git add file &&
echo "content" >> file &&
git add file &&
@@
-144,7
+144,7
@@
test_expect_success 'with non-executable hook' '
'
'
-test_expect_success 'with non-executable hook (editor)' '
+test_expect_success
POSIXPERM
'with non-executable hook (editor)' '
echo "content again" >> file &&
git add file &&
echo "content again" >> file &&
git add file &&
@@
-153,7
+153,7
@@
test_expect_success 'with non-executable hook (editor)' '
'
'
-test_expect_success '--no-verify with non-executable hook' '
+test_expect_success
POSIXPERM
'--no-verify with non-executable hook' '
echo "more content" >> file &&
git add file &&
echo "more content" >> file &&
git add file &&
@@
-161,7
+161,7
@@
test_expect_success '--no-verify with non-executable hook' '
'
'
-test_expect_success '--no-verify with non-executable hook (editor)' '
+test_expect_success
POSIXPERM
'--no-verify with non-executable hook (editor)' '
echo "even more content" >> file &&
git add file &&
echo "even more content" >> file &&
git add file &&
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 5337e8920277fa4093e0a908f3ae30282f974f1b..f134e73566b5d98c4cc9d26fa8fccc62bdd49a32 100644
(file)
--- a/
t/test-lib.sh
+++ b/
t/test-lib.sh
@@
-687,6
+687,10
@@
case $(uname -s) in
pwd () {
builtin pwd -W
}
pwd () {
builtin pwd -W
}
+ # no POSIX permissions
+ ;;
+*)
+ test_set_prereq POSIXPERM
;;
esac
;;
esac