sys-apps/keyutils: disable tests that modify global system settings #519062 #522050
authorMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2017 16:54:46 +0000 (10:54 -0600)
committerMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2017 16:54:46 +0000 (10:54 -0600)
sys-apps/keyutils/files/keyutils-1.5.9-disable-tests.patch [new file with mode: 0644]
sys-apps/keyutils/keyutils-1.5.9-r2.ebuild

diff --git a/sys-apps/keyutils/files/keyutils-1.5.9-disable-tests.patch b/sys-apps/keyutils/files/keyutils-1.5.9-disable-tests.patch
new file mode 100644 (file)
index 0000000..0a5a02b
--- /dev/null
@@ -0,0 +1,51 @@
+disable tests that mess with system wide settings
+
+https://bugs.gentoo.org/519062
+
+--- a/tests/bugzillas/bz1031154/runtest.sh
++++ b/tests/bugzillas/bz1031154/runtest.sh
+@@ -11,6 +11,8 @@
+ result=PASS
+ echo "++++ BEGINNING TEST" >$OUTPUTFILE
++if false; then
++
+ # we need a reference time to scan the audit log from so as not to pick up old
+ # results from this test.
+ base_date=`date +"%x@%X"`
+@@ -81,6 +83,10 @@
+       fi
+ fi
++else
++marker "Gentoo: skipping test due to system wide modifications"
++fi
++
+ echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
+ # --- then report the results in the database ---
+
+https://bugs.gentoo.org/522050
+
+--- a/tests/keyctl/padd/useradd/runtest.sh
++++ b/tests/keyctl/padd/useradd/runtest.sh
+@@ -40,6 +40,8 @@
+ marker "UNLINK KEY"
+ unlink_key $keyid @s
++if false; then
++
+ # add keys with huge payloads
+ old_root_quota=`cat /proc/sys/kernel/keys/root_maxbytes`
+ if [ $old_root_quota -lt 65536 ]
+@@ -76,6 +78,10 @@
+     sleep 1
+ fi
++else
++marker "Gentoo: skipping test due to system wide modifications"
++fi
++
+ echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
+ # --- then report the results in the database ---
index 572489eb76920a591b331ae81bf24c4d82a33c9e..0c96c79d7277fa0e442e3a15c5dd7ff9cecaae8e 100644 (file)
@@ -28,6 +28,7 @@ pkg_setup() {
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-1.5.5-makefile-fixup.patch
        epatch "${FILESDIR}"/${PN}-1.5.9-endian-check-{1,2}.patch #426424
+       epatch "${FILESDIR}"/${PN}-1.5.9-disable-tests.patch #519062 #522050
 
        # The lsb check is useless, so avoid spurious command not found messages.
        sed -i -e 's,lsb_release,:,' tests/prepare.inc.sh || die