commit: bafe53e916752f9fce091fb0282615db54f8ed1d Author: Violet Purcell <vimproved <AT> inventati <DOT> org> AuthorDate: Fri Nov 8 17:32:23 2024 +0000 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> CommitDate: Sun Nov 10 06:48:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bafe53e9
sys-power/throttled: wire up import-check tests Closes: https://github.com/gentoo/gentoo/pull/39133 Signed-off-by: Violet Purcell <vimproved <AT> inventati.org> Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> sys-power/throttled/throttled-0.11.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys-power/throttled/throttled-0.11.ebuild b/sys-power/throttled/throttled-0.11.ebuild index 84d67fc45a29..955b3325dd7f 100644 --- a/sys-power/throttled/throttled-0.11.ebuild +++ b/sys-power/throttled/throttled-0.11.ebuild @@ -13,8 +13,9 @@ SRC_URI="https://github.com/erpalma/throttled/archive/refs/tags/v${PV}.tar.gz -> LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -RESTRICT="test" +RESTRICT="!test? ( test )" CONFIG_CHECK="~X86_MSR ~DEVMEM" @@ -25,6 +26,7 @@ RDEPEND=" dev-python/pygobject[${PYTHON_USEDEP}] ') sys-apps/pciutils + test? ( dev-python/pytest-import-check ) " pkg_setup() { @@ -32,6 +34,10 @@ pkg_setup() { python-single-r1_pkg_setup } +src_test() { + epytest -p no:python --import-check mmio.py throttled.py +} + src_install() { default python_newscript throttled.py throttled
