twister: add a hardware map support for using serial pty

The hardware map feature can be used with serial pty mode in
this change. And also add an runner_params option for passing
more parameters from hardware map file to west runner. Note
that you need to create this map file manually because it
cannot be scanned out correctly due to pty is not a physical
HW device existing in system.

And also update doc/develop/test/twister.rst for the usage.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
Enjia Mai 2022-04-15 11:32:03 +08:00 committed by Anas Nashif
commit 4966de2014
3 changed files with 82 additions and 5 deletions

View file

@ -27,6 +27,14 @@ sequence:
"runner":
type: str
required: true
"runner_params":
type: seq
required: false
sequence:
- type: str
"serial_pty":
type: str
required: false
"serial":
type: str
required: false