From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93802159C96 for ; Mon, 22 Jul 2024 19:12:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D787AE2A39; Mon, 22 Jul 2024 19:11:59 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3B96E2A39 for ; Mon, 22 Jul 2024 19:11:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE7773406D1 for ; Mon, 22 Jul 2024 19:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F396210AD for ; Mon, 22 Jul 2024 19:11:56 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1721675514.a2a6be18c8b272b9c0c4b75ea32c90e52a57afd1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/blueman/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/blueman/blueman-9999.ebuild X-VCS-Directories: net-wireless/blueman/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a2a6be18c8b272b9c0c4b75ea32c90e52a57afd1 X-VCS-Branch: master Date: Mon, 22 Jul 2024 19:11:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a8042392-3405-423c-8e39-6173d6f3b4e6 X-Archives-Hash: e64c059221560f0d149edcfe64314860 commit: a2a6be18c8b272b9c0c4b75ea32c90e52a57afd1 Author: Michał Górny gentoo org> AuthorDate: Mon Jul 22 19:11:02 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Jul 22 19:11:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2a6be18 net-wireless/blueman: Sync the live ebuild Signed-off-by: Michał Górny gentoo.org> net-wireless/blueman/blueman-9999.ebuild | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/net-wireless/blueman/blueman-9999.ebuild b/net-wireless/blueman/blueman-9999.ebuild index bec135aa318c..eb7eface474e 100644 --- a/net-wireless/blueman/blueman-9999.ebuild +++ b/net-wireless/blueman/blueman-9999.ebuild @@ -39,6 +39,10 @@ DEPEND=" BDEPEND=" $(python_gen_cond_dep ' dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/python-dbusmock[${PYTHON_USEDEP}] + >=net-misc/networkmanager-0.8[introspection] + ) ') virtual/pkgconfig nls? ( sys-devel/gettext ) @@ -80,6 +84,8 @@ RDEPEND=" ) " +distutils_enable_tests unittest + pkg_pretend() { if use network; then local CONFIG_CHECK=" @@ -127,6 +133,27 @@ python_compile() { default } +python_test() { + local -x PYTHONPATH=module/.libs + + if [[ ! -f /dev/rfkill ]]; then + # Tests attempt to import these modules if present, but they + # require /dev/rfkill. Hide them to make the tests pass. + mv blueman/plugins/mechanism/RfKill.py{,~} || die + mv blueman/plugins/applet/KillSwitch.py{,~} || die + fi + + local failed= + nonfatal eunittest || failed=1 + + if [[ ! -f /dev/rfkill ]]; then + mv blueman/plugins/mechanism/RfKill.py{~,} || die + mv blueman/plugins/applet/KillSwitch.py{~,} || die + fi + + [[ ${failed} ]] && die "Tests failed with ${EPYTHON}" +} + python_install() { default