[Concept,01/14] test/py: Avoid pulling in Labgrid with tests

Message ID 20251116212334.1603490-2-simon.glass@canonical.com
State New
Headers
Series luks: Integrate support for a TKey |

Commit Message

Simon Glass Nov. 16, 2025, 9:23 p.m. UTC
  When Labgrid is installed as an editable package (pip install -e),
pytest automatically loads it as a plugin. This can interfere with
U-Boot's test suite.

Disable automatic loading of the Labgrid pytest plugin to prevent
conflicts.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 test/py/pytest.ini | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/test/py/pytest.ini b/test/py/pytest.ini
index 361be0178ee..0a0268ec247 100644
--- a/test/py/pytest.ini
+++ b/test/py/pytest.ini
@@ -5,6 +5,7 @@ 
 # Static configuration data for pytest. pytest reads this at startup time.
 
 [pytest]
+addopts = -p no:labgrid
 markers =
     boardspec: U-Boot: Describes the set of boards a test can/can't run on.
     buildconfigspec: U-Boot: Describes Kconfig/config-header constraints.