aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-12-30 11:08:39 -0700
committerAriadne Conill <ariadne@dereferenced.org>2020-12-30 11:08:39 -0700
commitd9f105e613a8ea571cb36f716b01cc77ab7e342c (patch)
treedce58a6219559c8779728bd0483027bf5247f9ab
parent28a93f7a940a0680b1697821643c50479d373228 (diff)
downloadaports-d9f105e613a8ea571cb36f716b01cc77ab7e342c.tar.gz
aports-d9f105e613a8ea571cb36f716b01cc77ab7e342c.tar.bz2
aports-d9f105e613a8ea571cb36f716b01cc77ab7e342c.tar.xz
community/git: disable flaky permissions-related test
-rw-r--r--main/git/APKBUILD4
-rw-r--r--main/git/remove-flaky-permissions-test.patch34
2 files changed, 37 insertions, 1 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index 021371b3db..2e10f78ab3 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -58,6 +58,7 @@ subpackages="$pkgname-doc
source="https://www.kernel.org/pub/software/scm/git/git-$pkgver.tar.xz
git-daemon.initd
git-daemon.confd
+ remove-flaky-permissions-test.patch
"
_gitcoredir=/usr/libexec/git-core
@@ -284,4 +285,5 @@ _perl_config() {
sha512sums="2ce154d6e224e78d7da2ea9b954d8cf56bdfe43636b93dd5045a950a7362d3943866b4949eb5ed03528d6e5f0466c33c233b502d84430ed9d90326bcc696101d git-2.30.0.tar.xz
89528cdd14c51fd568aa61cf6c5eae08ea0844e59f9af9292da5fc6c268261f4166017d002d494400945e248df6b844e2f9f9cd2d9345d516983f5a110e4c42a git-daemon.initd
-fbf1f425206a76e2a8f82342537ed939ff7e623d644c086ca2ced5f69b36734695f9f80ebda1728f75a94d6cd2fcb71bf845b64239368caab418e4d368c141ec git-daemon.confd"
+fbf1f425206a76e2a8f82342537ed939ff7e623d644c086ca2ced5f69b36734695f9f80ebda1728f75a94d6cd2fcb71bf845b64239368caab418e4d368c141ec git-daemon.confd
+cc58e1774d8734ca9f31a33f8f40ba71f90fb882da8244e0aa01a481bcf3341086b9b73498532fce7863fde506dad548d274c708f70771b5c4e9a4ddbe0c9c52 remove-flaky-permissions-test.patch"
diff --git a/main/git/remove-flaky-permissions-test.patch b/main/git/remove-flaky-permissions-test.patch
new file mode 100644
index 0000000000..cc0b3505d9
--- /dev/null
+++ b/main/git/remove-flaky-permissions-test.patch
@@ -0,0 +1,34 @@
+diff -urN git-2.30.0.orig/t/t4129-apply-samemode.sh git-2.30.0/t/t4129-apply-samemode.sh
+--- git-2.30.0.orig/t/t4129-apply-samemode.sh 2020-12-30 11:07:20.975280000 -0700
++++ git-2.30.0/t/t4129-apply-samemode.sh 2020-12-30 11:07:44.208724465 -0700
+@@ -73,30 +73,4 @@
+ test_i18ngrep "invalid mode" err
+ '
+
+-test_expect_success POSIXPERM 'do not use core.sharedRepository for working tree files' '
+- git reset --hard &&
+- test_config core.sharedRepository 0666 &&
+- (
+- # Remove a default ACL if possible.
+- (setfacl -k newdir 2>/dev/null || true) &&
+- umask 0077 &&
+-
+- # Test both files (f1) and leading dirs (d)
+- mkdir d &&
+- touch f1 d/f2 &&
+- git add f1 d/f2 &&
+- git diff --staged >patch-f1-and-f2.txt &&
+-
+- rm -rf d f1 &&
+- git apply patch-f1-and-f2.txt &&
+-
+- echo "-rw-------" >f1_mode.expected &&
+- echo "drwx------" >d_mode.expected &&
+- test_modebits f1 >f1_mode.actual &&
+- test_modebits d >d_mode.actual &&
+- test_cmp f1_mode.expected f1_mode.actual &&
+- test_cmp d_mode.expected d_mode.actual
+- )
+-'
+-
+ test_done