diff options
| author | Arthur Zamarin <arthurzam@gentoo.org> | 2025-01-04 15:49:52 +0200 |
|---|---|---|
| committer | Arthur Zamarin <arthurzam@gentoo.org> | 2025-01-04 15:49:52 +0200 |
| commit | 409bc4805e2f66612f0772aa98d57d03bf9df4fa (patch) | |
| tree | 6dc51b8fad5041576e8e693b55df8bada6b5761f /dev-python | |
| parent | 8e80d77266979f863e331b9434cfa245205e630c (diff) | |
| download | gentoo-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.ebuild | 9 |
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" } |
