summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-01 15:36:51 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-01 15:37:11 +0100
commit65a814f3e12ce3e1e121514e7610cbafa4323fe4 (patch)
treebff5edf085e4a35d5f592a22fc2f2cc30a2e3468 /dev-python/python-systemd
parentmedia-sound/easyeffects: add 6.2.3, drop 6.2.1 (diff)
downloadgentoo-65a814f3e12ce3e1e121514e7610cbafa4323fe4.tar.gz
gentoo-65a814f3e12ce3e1e121514e7610cbafa4323fe4.tar.bz2
gentoo-65a814f3e12ce3e1e121514e7610cbafa4323fe4.zip
dev-python/python-systemd: Change cwd instead of rming dir for tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-systemd')
-rw-r--r--dev-python/python-systemd/python-systemd-234-r2.ebuild7
1 files changed, 1 insertions, 6 deletions
diff --git a/dev-python/python-systemd/python-systemd-234-r2.ebuild b/dev-python/python-systemd/python-systemd-234-r2.ebuild
index 60d75ffb0ea8..9ad4a49314b1 100644
--- a/dev-python/python-systemd/python-systemd-234-r2.ebuild
+++ b/dev-python/python-systemd/python-systemd-234-r2.ebuild
@@ -32,13 +32,8 @@ python_compile() {
distutils-r1_python_compile -j1
}
-src_test() {
- # prevent relative import
- rm -r systemd || die
- distutils-r1_src_test
-}
-
python_test() {
unset NOTIFY_SOCKET
+ cd "${T}" || die
epytest --pyargs systemd -o cache_dir="${T}"
}