commit:     ef29ef1b5de0e378b0ad12cea6c9e3087a88ce16
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  2 15:30:49 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun  2 16:12:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef29ef1b

dev-python/jeepney: Run dbus-based tests too

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/jeepney/jeepney-0.6.0.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-python/jeepney/jeepney-0.6.0.ebuild 
b/dev-python/jeepney/jeepney-0.6.0.ebuild
index 8a13adf0564..42dd4172cf3 100644
--- a/dev-python/jeepney/jeepney-0.6.0.ebuild
+++ b/dev-python/jeepney/jeepney-0.6.0.ebuild
@@ -21,6 +21,7 @@ BDEPEND="
        test? (
                dev-python/pytest-asyncio[${PYTHON_USEDEP}]
                dev-python/testpath[${PYTHON_USEDEP}]
+               sys-apps/dbus
        )
 "
 
@@ -34,6 +35,10 @@ src_prepare() {
        distutils-r1_src_prepare
 }
 
+python_test() {
+       dbus-run-session pytest -vv -ra -l || die "tests failed with ${EPYTHON}"
+}
+
 python_install_all() {
        if use examples; then
                docompress -x "/usr/share/doc/${PF}/examples"

Reply via email to