commit:     a66d68c5476a9aeb8a74442e11d004ce48a7c625
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 11 14:57:22 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 18:43:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a66d68c5

virtualx.eclass: Append RESTRICT="!test? ( test )" by default

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 <AT> gentoo.org>

 eclass/virtualx.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index 40eeea5463b..6aba6bf488d 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in
                fi
                RDEPEND=""
                IUSE="${VIRTUALX_REQUIRED}"
+               [[ ${VIRTUALX_REQUIRED} == test ]] &&
+                       RESTRICT+=" !test? ( test )"
                ;;
 esac
 

Reply via email to