summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-01-04 15:49:52 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-01-04 15:49:52 +0200
commit409bc4805e2f66612f0772aa98d57d03bf9df4fa (patch)
tree6dc51b8fad5041576e8e693b55df8bada6b5761f /dev-python
parent8e80d77266979f863e331b9434cfa245205e630c (diff)
downloadgentoo-409bc4805e2f66612f0772aa98d57d03bf9df4fa.tar.gz
gentoo-409bc4805e2f66612f0772aa98d57d03bf9df4fa.tar.bz2
gentoo-409bc4805e2f66612f0772aa98d57d03bf9df4fa.zip
dev-python/pyudev: skip tests on systemd-nspawn
Code is based on similar situation in glibc test suite. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyudev/pyudev-0.24.3.ebuild9
1 files changed, 9 insertions, 0 deletions
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"
}