zephyr/scripts/schemas/twister/hwmap-schema.yaml
Lucas Tamborrino d65b6bc199 twister: add flash-before option
Add option to flash board before attach serial.

Current implementation performs the following sequence:

1. Open serial port to listen to board log output
2. Flash device

In case of ESP32 where it uses the same serial port
for both operations, flashing needs to come first.

This PR adds a twister option named --flash-before
which enables the process above, allowing tests to be
performed properly.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
2024-03-25 18:37:49 -04:00

67 lines
1.3 KiB
YAML

type: seq
sequence:
- type: map
required: false
mapping:
"available":
type: bool
required: false
"connected":
type: bool
required: true
"id":
type: str
required: true
"notes":
type: str
required: false
"platform":
type: str
required: true
"probe_id":
type: str
required: false
"product":
type: str
required: true
"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
"baud":
type: int
required: false
"post_script":
type: str
required: false
"post_flash_script":
type: str
required: false
"pre_script":
type: str
required: false
"fixtures":
type: seq
required: false
sequence:
- type: str
"flash_timeout":
type: int
required: false
"flash_with_test":
type: bool
required: false
"flash_before":
type: bool
required: false