summaryrefslogtreecommitdiff
path: root/dev-build/buildstream/files/buildstream-2.7.0-rename-the-destination-of-the-plugins-option.patch
blob: 71d157a2ce7db9e85b76354b6de627e8095f7560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://github.com/apache/buildstream/pull/2130

From a263b4d2ac31ce1a2fb190e737464245dde3686c Mon Sep 17 00:00:00 2001
From: Abderrahim Kitouni <akitouni@gnome.org>
Date: Tue, 2 Jun 2026 15:50:56 +0100
Subject: [PATCH] conftest: rename the destination of the --plugins option

This conflicts with the `-p` option of pytest
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -41,7 +41,7 @@
 #################################################
 def pytest_addoption(parser):
     parser.addoption("--integration", action="store_true", default=False, help="Run integration tests")
-    parser.addoption("--plugins", action="store_true", default=False, help="Run only plugins tests")
+    parser.addoption("--plugins", action="store_true", dest="bst_plugins", default=False, help="Run only plugins tests")
     parser.addoption("--remote-execution", action="store_true", default=False, help="Run remote-execution tests only")
     parser.addoption("--remote-cache", action="store_true", default=False, help="Run remote-cache tests only")
 
@@ -74,7 +74,7 @@ def pytest_collection_modifyitems(session, config, items):
                 item.add_marker(pytest.mark.skip("skipping remote-cache test"))
 
         # With --plugins only run plugins tests
-        if config.getvalue("plugins"):
+        if config.getvalue("bst_plugins"):
             if not item.get_closest_marker("generic_source_test"):
                 item.add_marker(pytest.mark.skip("Skipping not generic source test"))