From 0b076a93ca5e4ea98bae07fc222697f7ef165232 Mon Sep 17 00:00:00 2001 From: Bartlomiej Buczek Date: Tue, 16 Apr 2024 09:29:54 +0200 Subject: [PATCH] twister: pytest: hardware_adapter: adapt to nrfutil. add --dev-id to flashing command also when nrfutil runner is used. Signed-off-by: Bartlomiej Buczek --- .../src/twister_harness/device/hardware_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py b/scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py index 4a6967b6372..5a5a845c3a1 100644 --- a/scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py +++ b/scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py @@ -70,7 +70,7 @@ class HardwareAdapter(DeviceAdapter): if runner == 'pyocd': extra_args.append('--board-id') extra_args.append(board_id) - elif runner == 'nrfjprog': + elif runner in ('nrfjprog', 'nrfutil'): extra_args.append('--dev-id') extra_args.append(board_id) elif runner == 'openocd' and self.device_config.product in ['STM32 STLink', 'STLINK-V3']: