public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )"
@ 2019-12-12 15:18 Michał Górny
  2019-12-12 15:51 ` David Seifert
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2019-12-12 15:18 UTC (permalink / raw
  To: gentoo-dev; +Cc: ml, Michał Górny

This fixes 30 cases of MissingTestRestrict.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 eclass/oasis.eclass | 7 +++++--
 1 file 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"
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )"
  2019-12-12 15:18 [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )" Michał Górny
@ 2019-12-12 15:51 ` David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2019-12-12 15:51 UTC (permalink / raw
  To: gentoo-dev; +Cc: ml, Michał Górny

On Thu, 2019-12-12 at 16:18 +0100, Michał Górny wrote:
> This fixes 30 cases of MissingTestRestrict.
> 
> Signed-off-by: Michał Górny <mgorny@gentoo.org>
> ---
>  eclass/oasis.eclass | 7 +++++--
>  1 file 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"

ACK



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-12 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 15:18 [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )" Michał Górny
2019-12-12 15:51 ` David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox