sanitycheck: Add fixture option for external hardware dependecy
Add a new option as fixture in harness configurations for utilizing sanitycheck to identify test cases that require external hardware such as sensor, ble, networking for validation. The config will be added to yaml files with unique fixture name to identify each hardware and allow automation to trigger test execution on setup having the specific fixture enabled. Also, remove the default required for type and regex configs that is not essential in case of ztest based test cases. Signed-off-by: Praful Swarnakar <praful.swarnakar@intel.com>
This commit is contained in:
parent
6cb52b97fe
commit
cf89e2883d
2 changed files with 11 additions and 5 deletions
|
@ -47,7 +47,10 @@ mapping:
|
|||
mapping:
|
||||
"type":
|
||||
type: str
|
||||
required: yes
|
||||
required: no
|
||||
"fixture":
|
||||
type: str
|
||||
required: no
|
||||
"ordered":
|
||||
type: bool
|
||||
required: no
|
||||
|
@ -56,7 +59,7 @@ mapping:
|
|||
required: no
|
||||
"regex":
|
||||
type: seq
|
||||
required: yes
|
||||
required: no
|
||||
sequence:
|
||||
- type: str
|
||||
"min_ram":
|
||||
|
@ -160,7 +163,10 @@ mapping:
|
|||
mapping:
|
||||
"type":
|
||||
type: str
|
||||
required: yes
|
||||
required: no
|
||||
"fixture":
|
||||
type: str
|
||||
required: no
|
||||
"ordered":
|
||||
type: bool
|
||||
required: no
|
||||
|
@ -169,7 +175,7 @@ mapping:
|
|||
required: no
|
||||
"regex":
|
||||
type: seq
|
||||
required: yes
|
||||
required: no
|
||||
sequence:
|
||||
- type: str
|
||||
"min_ram":
|
||||
|
|
|
@ -1172,7 +1172,7 @@ testcase_valid_keys = {"tags": {"type": "set", "required": False},
|
|||
"toolchain_whitelist": {"type": "set"},
|
||||
"filter": {"type": "str"},
|
||||
"harness": {"type": "str"},
|
||||
"harness_config": {"type": "map"}
|
||||
"harness_config": {"type": "map", "default": {}}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue