virtualx.eclass: Append RESTRICT="!test? ( test )" by default
authorMichał Górny <mgorny@gentoo.org>
Wed, 11 Dec 2019 14:57:22 +0000 (15:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 11 Dec 2019 18:43:38 +0000 (19:43 +0100)
Append RESTRICT="!test? ( test )" in the default case when virtualx
is conditional to USE=test.  This fixes 440 MissingTestRestrict
warnings.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/virtualx.eclass

index 40eeea5463bcdaadc1bcf3dfe709a29c9dda56b9..6aba6bf488dd36ab49f89a5ec3235ecff4534eca 100644 (file)
@@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in
                fi
                RDEPEND=""
                IUSE="${VIRTUALX_REQUIRED}"
+               [[ ${VIRTUALX_REQUIRED} == test ]] &&
+                       RESTRICT+=" !test? ( test )"
                ;;
 esac