1 |
This fixes 30 cases of MissingTestRestrict. |
2 |
|
3 |
Signed-off-by: Michał Górny <mgorny@g.o> |
4 |
--- |
5 |
eclass/oasis.eclass | 7 +++++-- |
6 |
1 file changed, 5 insertions(+), 2 deletions(-) |
7 |
|
8 |
diff --git a/eclass/oasis.eclass b/eclass/oasis.eclass |
9 |
index 53db4b777271..7727253575d4 100644 |
10 |
--- a/eclass/oasis.eclass |
11 |
+++ b/eclass/oasis.eclass |
12 |
@@ -1,4 +1,4 @@ |
13 |
-# Copyright 1999-2012 Gentoo Foundation |
14 |
+# Copyright 1999-2019 Gentoo Authors |
15 |
# Distributed under the terms of the GNU General Public License v2 |
16 |
|
17 |
# @ECLASS: oasis.eclass |
18 |
@@ -60,7 +60,10 @@ esac |
19 |
IUSE="+ocamlopt" |
20 |
[ -n "${OASIS_NO_DEBUG}" ] || IUSE="${IUSE} debug" |
21 |
[ -n "${OASIS_BUILD_DOCS}" ] && IUSE="${IUSE} doc" |
22 |
-[ -n "${OASIS_BUILD_TESTS}" ] && IUSE="${IUSE} test" |
23 |
+if [[ -n ${OASIS_BUILD_TESTS} ]]; then |
24 |
+ IUSE+=" test" |
25 |
+ RESTRICT+=" !test? ( test )" |
26 |
+fi |
27 |
|
28 |
DEPEND="${RDEPEND} |
29 |
dev-ml/ocamlbuild" |
30 |
-- |
31 |
2.24.1 |