summaryrefslogtreecommitdiff
path: root/test/py/conftest.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-05-18 08:06:56 -0600
committerTom Rini <trini@konsulko.com>2025-05-18 08:06:56 -0600
commiteeb5ff1a468b2303efa9deb2483b5edbebb568c6 (patch)
tree52d32503af86d214a4bece8b6093393e521e345d /test/py/conftest.py
parent126a88d49bcae04bbfc0d6723097cd6341355ade (diff)
parent22abd882c3de2eb365d4c503246c9c7499d4c7f1 (diff)
Merge tag 'efi-2025-07-rc3-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2025-07-rc3-2 Documentation: * Add test/py/requirements.txt to documentation * Use globing for selecting pytest files UEFI: * Provide a function to disable ANSI output during tests Other: * test: allow multiple config options in buildconfigspec * test: allow testing with NET_LWIP=y
Diffstat (limited to 'test/py/conftest.py')
-rw-r--r--test/py/conftest.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py
index 5aea85647af..6c3ac67979a 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -711,9 +711,13 @@ def setup_buildconfigspec(item):
"""
for options in item.iter_markers('buildconfigspec'):
- option = options.args[0]
- if not ubconfig.buildconfig.get('config_' + option.lower(), None):
- pytest.skip('.config feature "%s" not enabled' % option.lower())
+ nomatch = True
+ for arg in options.args:
+ if ubconfig.buildconfig.get('config_' + arg.lower(), None):
+ nomatch = False
+ if nomatch:
+ argsString = ', '.join(options.args)
+ pytest.skip(f'.config features "{argsString}" not enabled')
for options in item.iter_markers('notbuildconfigspec'):
option = options.args[0]
if ubconfig.buildconfig.get('config_' + option.lower(), None):