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@gentoo.org>
This commit is contained in:
Michał Górny
2019-12-11 15:57:22 +01:00
parent 252cc3a9ca
commit a66d68c547

View File

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