summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-12 16:00:26 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-12 17:33:42 +0100
commite39f4f2843d870def8cab3c93e289c78452d3008 (patch)
tree55b7b95b46969bf26741efbbbe763db36119a939 /eclass/oasis.eclass
parentdev-ros/ament_cmake_export_include_directories: fix deps, add live ebuild (diff)
downloadgentoo-e39f4f2843d870def8cab3c93e289c78452d3008.tar.gz
gentoo-e39f4f2843d870def8cab3c93e289c78452d3008.tar.bz2
gentoo-e39f4f2843d870def8cab3c93e289c78452d3008.zip
oasis.eclass: Add RESTRICT="!test? ( test )"
This fixes 30 cases of MissingTestRestrict. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/oasis.eclass')
-rw-r--r--eclass/oasis.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/oasis.eclass b/eclass/oasis.eclass
index 53db4b777271..7727253575d4 100644
--- a/eclass/oasis.eclass
+++ b/eclass/oasis.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: oasis.eclass
@@ -60,7 +60,10 @@ esac
IUSE="+ocamlopt"
[ -n "${OASIS_NO_DEBUG}" ] || IUSE="${IUSE} debug"
[ -n "${OASIS_BUILD_DOCS}" ] && IUSE="${IUSE} doc"
-[ -n "${OASIS_BUILD_TESTS}" ] && IUSE="${IUSE} test"
+if [[ -n ${OASIS_BUILD_TESTS} ]]; then
+ IUSE+=" test"
+ RESTRICT+=" !test? ( test )"
+fi
DEPEND="${RDEPEND}
dev-ml/ocamlbuild"