twister: pytest: hardware_adapter: adapt to nrfutil.

add --dev-id to flashing command also when nrfutil runner is used.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
This commit is contained in:
Bartlomiej Buczek 2024-04-16 09:29:54 +02:00 committed by Anas Nashif
parent e396923198
commit 0b076a93ca

View file

@ -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']: