aports/community/blueman/disable-rfkill-tests.patch
knuxify 829dae2178 community/blueman: move from testing
Also drops pytest from checkdepends, as the built-in unittest module
is used instead.
2021-08-31 07:16:54 +00:00

26 lines
832 B
Diff

From 9e04c6b7ead06e8781f3f715e0449cc1f3f4eeec Mon Sep 17 00:00:00 2001
From: knuxify <knuxify@gmail.com>
Date: Wed, 4 Aug 2021 11:06:17 +0200
Subject: [PATCH] disable rfkill tests
---
test/test_imports.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/test_imports.py b/test/test_imports.py
index 7a69d806..305254d2 100644
--- a/test/test_imports.py
+++ b/test/test_imports.py
@@ -20,6 +20,8 @@ def load_tests(*_args):
test_cases = TestSuite()
home = os.path.dirname(os.path.dirname(__file__))
for package in pkgutil.walk_packages([f"{home}/blueman"], "blueman."):
+ if package.name in ["blueman.plugins.applet.KillSwitch", "blueman.plugins.mechanism.RfKill"]:
+ continue
test_cases.addTest(TestImports(package.name))
assert test_cases.countTestCases() > 0
--
2.32.0