diff options
author | 2024-11-08 12:32:23 -0500 | |
---|---|---|
committer | 2024-11-10 14:48:56 +0800 | |
commit | bafe53e916752f9fce091fb0282615db54f8ed1d (patch) | |
tree | 81a8cec2797e4b8bc04b7dfabb9a559150454a8d /sys-power | |
parent | sys-power/throttled: enable py3.13 (diff) | |
download | gentoo-bafe53e916752f9fce091fb0282615db54f8ed1d.tar.gz gentoo-bafe53e916752f9fce091fb0282615db54f8ed1d.tar.bz2 gentoo-bafe53e916752f9fce091fb0282615db54f8ed1d.zip |
sys-power/throttled: wire up import-check tests
Closes: https://github.com/gentoo/gentoo/pull/39133
Signed-off-by: Violet Purcell <vimproved@inventati.org>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/throttled/throttled-0.11.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
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 |