twister: pytest: Allow using pytest-args from command file and yaml

Extend pytest-args from configuration yaml file with args
from command line instead of overwriting.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
This commit is contained in:
Grzegorz Chwierut 2024-07-15 15:48:29 +02:00 committed by Anas Nashif
commit 7cca59c81a
4 changed files with 7 additions and 9 deletions

View file

@ -97,6 +97,8 @@ There are two ways for passing extra arguments to the called pytest subprocess:
-s samples/subsys/testsuite/pytest/shell/sample.pytest.shell \
--pytest-args='-k test_shell_print_version'
The command line arguments will extend those from the .yaml file. If the same argument is
present in both places, the one from the command line will take precedence.
Fixtures
********