scripts: pytest: improve plugin options

Add better description of available options and add actions which
should help to prevent from passing invalid options to plugin.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
This commit is contained in:
Piotr Golyzniak 2023-08-04 17:33:39 +02:00 committed by Anas Nashif
commit eb672ddd0a
11 changed files with 102 additions and 109 deletions

View file

@ -18,7 +18,7 @@ from twister_harness.twister_harness_config import DeviceConfig
def fixture_device_adapter(tmp_path) -> Generator[QemuAdapter, None, None]:
build_dir = tmp_path / 'build_dir'
os.mkdir(build_dir)
device = QemuAdapter(DeviceConfig(build_dir=build_dir))
device = QemuAdapter(DeviceConfig(build_dir=build_dir, type='qemu'))
try:
yield device
finally: