aboutsummaryrefslogtreecommitdiffstats
path: root/community/blueman/dont-rerun-plugin-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/blueman/dont-rerun-plugin-tests.patch')
-rw-r--r--community/blueman/dont-rerun-plugin-tests.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/blueman/dont-rerun-plugin-tests.patch b/community/blueman/dont-rerun-plugin-tests.patch
new file mode 100644
index 00000000000..05ba74968f9
--- /dev/null
+++ b/community/blueman/dont-rerun-plugin-tests.patch
@@ -0,0 +1,28 @@
+From bc17add153bbb287a1991d722aa0631da2290de3 Mon Sep 17 00:00:00 2001
+From: knuxify <knuxify@gmail.com>
+Date: Fri, 8 Jul 2022 14:06:17 +0200
+Subject: [PATCH] Don't re-run plugin tests
+
+There are some expected exceptions in plugin tests which are
+ignored in the main test_imports.py file.
+---
+ test/test_imports.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/test_imports.py b/test/test_imports.py
+index 7a69d80..28dea3a 100644
+--- a/test/test_imports.py
++++ b/test/test_imports.py
+@@ -20,7 +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."):
+- test_cases.addTest(TestImports(package.name))
++ if not package.name.startswith('blueman.plugins.'):
++ test_cases.addTest(TestImports(package.name))
+
+ assert test_cases.countTestCases() > 0
+
+--
+2.37.0
+