commit: 409bc4805e2f66612f0772aa98d57d03bf9df4fa
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 4 13:49:52 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 4 13:49:52 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=409bc480
dev-python/pyudev: skip tests on systemd-nspawn
Code is based on similar situation in glibc test suite.
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/pyudev/pyudev-0.24.3.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dev-python/pyudev/pyudev-0.24.3.ebuild
b/dev-python/pyudev/pyudev-0.24.3.ebuild
index 1e55a1e0bd84..c0751716b768 100644
--- a/dev-python/pyudev/pyudev-0.24.3.ebuild
+++ b/dev-python/pyudev/pyudev-0.24.3.ebuild
@@ -72,6 +72,15 @@ python_test() {
epytest tests
}
+src_test() {
+ local virt=$(systemd-detect-virt 2>/dev/null)
+ if [[ ${virt} == systemd-nspawn ]] ; then
+ ewarn "Skipping tests because in systemd-nspawn container"
+ else
+ distutils-r1_src_test
+ fi
+}
+
pkg_postinst() {
optfeature "PyQt5 bindings" "dev-python/pyqt5"
}