twister: pytest: Allow list of pytest testpaths

Allow to specify a list of pytest directories, files or subtests
with pytest_root keyword in test yaml.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
This commit is contained in:
Grzegorz Chwierut 2023-09-14 15:34:07 +02:00 committed by Anas Nashif
commit 5bb3067942
3 changed files with 70 additions and 4 deletions

View file

@ -95,8 +95,10 @@ mapping:
type: int
required: false
"pytest_root":
type: str
type: seq
required: false
sequence:
- type: str
"pytest_args":
type: seq
required: false
@ -293,8 +295,10 @@ mapping:
type: int
required: false
"pytest_root":
type: str
type: seq
required: false
sequence:
- type: str
"pytest_args":
type: seq
required: false