scripts: pytest: add tests to new adapters API

According to new adapters API add new tests which verify their
correctness. Introduce some minor naming changes to describe better
their role.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
This commit is contained in:
Piotr Golyzniak 2023-08-07 11:02:37 +02:00 committed by Anas Nashif
commit 36e2b8e2b2
3 changed files with 123 additions and 37 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, type='qemu'))
device = QemuAdapter(DeviceConfig(build_dir=build_dir, type='qemu', base_timeout=5.0))
try:
yield device
finally: