haskell-cabal.eclass: Fix MissingTestRestrict
authorMichał Górny <mgorny@gentoo.org>
Wed, 11 Dec 2019 09:42:17 +0000 (10:42 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 11 Dec 2019 20:47:28 +0000 (21:47 +0100)
This fixes 564 cases of MissingTestRestrict.  According to md5-cache
inspection, no other changes in metadata occur.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13945
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/haskell-cabal.eclass

index 30b67bf7af942ed53aeb35d75ee472efbdd07a90..2fc797e764cbc3b8a2f9e8dc5898600db0a5c34f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: haskell-cabal.eclass
@@ -137,6 +137,7 @@ fi
 
 if [[ -n "${CABAL_TEST_SUITE}" ]]; then
        IUSE="${IUSE} test"
+       RESTRICT+=" !test? ( test )"
 fi
 
 # returns the version of cabal currently in use.