summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-12 08:12:49 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-12 14:25:42 +0100
commitba2522d9c4e391e78fe193b6504b20000fd32f3a (patch)
tree2e942005df49673b7ed14771733a50992b03513e /eclass/java-utils-2.eclass
parent*/*: [QA] Remove redundant `|| die` on virtx (diff)
downloadgentoo-ba2522d9c4e391e78fe193b6504b20000fd32f3a.tar.gz
gentoo-ba2522d9c4e391e78fe193b6504b20000fd32f3a.tar.bz2
gentoo-ba2522d9c4e391e78fe193b6504b20000fd32f3a.zip
java-utils-2.eclass: Add RESTRICT="!test? ( test )"
Add RESTRICT="!test? ( test )" when the ebuild specified JAVA_PKG_IUSE="test". This fixes further 100 MissingTestRestrict cases. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index e32cb572f147..1e46e9b55780 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -28,6 +28,8 @@ export WANT_JAVA_CONFIG="2"
# Prefix variables are only available for EAPI>=3
has "${EAPI:-0}" 0 1 2 && ED="${D}" EPREFIX= EROOT="${ROOT}"
+has test ${JAVA_PKG_IUSE} && RESTRICT+=" !test? ( test )"
+
# @VARIABLE: JAVA_PKG_E_DEPEND
# @INTERNAL
# @DESCRIPTION: