twister: add support for platform_type filter

Instead of relying on runtime filter to limit scope to emulation
platforms, use the type attribute for each platform and do the filtering
very early on. This will speed things up for tests where we only run on
emulation platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-05-14 09:00:04 -04:00
commit a6f924db7f
9 changed files with 33 additions and 7 deletions

View file

@ -104,6 +104,11 @@ mapping:
"platform_allow":
type: str
required: false
"platform_type":
type: seq
required: false
sequence:
- type: str
"tags":
type: str
required: false
@ -247,6 +252,11 @@ mapping:
"platform_allow":
type: str
required: false
"platform_type":
type: seq
required: false
sequence:
- type: str
"tags":
type: str
required: false