app-arch/rpm: warn about tests not running under sandbox
authorVirgil Dupras <vdupras@gentoo.org>
Thu, 7 Jun 2018 23:59:08 +0000 (19:59 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Thu, 7 Jun 2018 23:59:08 +0000 (19:59 -0400)
Closes: https://bugs.gentoo.org/657500
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-arch/rpm/rpm-4.14.1.ebuild

index 00c3cbeb2eb4e79cc50d5e2cf3356c33b53366db..322612b04ca4c2a1b0e6035b280188aa79d809a2 100644 (file)
@@ -108,6 +108,12 @@ src_install() {
 }
 
 src_test() {
+       # Known to fail with FEATURES=usersandbox (bug #657500):
+       if has usersandbox $FEATURES ; then
+               ewarn "You are emerging ${P} with 'usersandbox' enabled." \
+                       "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
+       fi
+
        emake check
 }