mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
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>
This commit is contained in:
parent
8e80d77266
commit
409bc4805e
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user