Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: haskell@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH] haskell-cabal.eclass: Fix MissingTestRestrict
Date: Wed, 11 Dec 2019 09:52:09
Message-Id: 20191211095136.201200-1-mgorny@gentoo.org
1 This fixes 564 cases of MissingTestRestrict. According to md5-cache
2 inspection, no other changes in metadata occur.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 eclass/haskell-cabal.eclass | 3 ++-
7 1 file changed, 2 insertions(+), 1 deletion(-)
8
9 diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
10 index 30b67bf7af94..2fc797e764cb 100644
11 --- a/eclass/haskell-cabal.eclass
12 +++ b/eclass/haskell-cabal.eclass
13 @@ -1,4 +1,4 @@
14 -# Copyright 1999-2018 Gentoo Authors
15 +# Copyright 1999-2019 Gentoo Authors
16 # Distributed under the terms of the GNU General Public License v2
17
18 # @ECLASS: haskell-cabal.eclass
19 @@ -137,6 +137,7 @@ fi
20
21 if [[ -n "${CABAL_TEST_SUITE}" ]]; then
22 IUSE="${IUSE} test"
23 + RESTRICT+=" !test? ( test )"
24 fi
25
26 # returns the version of cabal currently in use.
27 --
28 2.24.0

Replies