test: allow multiple config options in buildconfigspec
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 3 May 2025 13:31:54 +0000 (15:31 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 18 May 2025 07:16:51 +0000 (09:16 +0200)
commit2bac578c5abae233cc855f79791a2846c9a99518
tree362b4f513d7502f61b89a20bfe44863544c9b4fc
parent4fde49c317e1dc396b3dbf8e74757f5c18f60f1a
test: allow multiple config options in buildconfigspec

In some cases we have alternative configuration options that supply the
same functionality, e.g CONFIG_NET and CONFIG_NET_LWIP.

Allow to specify all of them as arguments for buildconfigspec() and execute
the text if any of these is fulfilled, e.g.

    @pytest.mark.buildconfigspec('net', 'net_lwip')

Update the documentation.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/develop/pytest/usage.rst
test/py/conftest.py