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 79a3a935644..37751f69d86 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 @@ -76,7 +76,7 @@ def _prepare_runner_args(self) -> tuple[list[str], list[str]]: elif runner == "esp32": extra_args.append("--esp-device") extra_args.append(board_id) - elif runner in ('nrfjprog', 'nrfutil'): + elif runner in ('nrfjprog', 'nrfutil', 'nrfutil_next'): extra_args.append('--dev-id') extra_args.append(board_id) elif runner == 'openocd' and self.device_config.product in ['STM32 STLink', 'STLINK-V3']: diff --git a/scripts/pylib/twister/twisterlib/handlers.py b/scripts/pylib/twister/twisterlib/handlers.py index dc1ff258935..30c40e01c8e 100755 --- a/scripts/pylib/twister/twisterlib/handlers.py +++ b/scripts/pylib/twister/twisterlib/handlers.py @@ -566,7 +566,7 @@ def _create_command(self, runner, hardware): board_id = hardware.probe_id or hardware.id product = hardware.product if board_id is not None: - if runner in ("pyocd", "nrfjprog", "nrfutil"): + if runner in ("pyocd", "nrfjprog", "nrfutil", "nrfutil_next"): command_extra_args.append("--dev-id") command_extra_args.append(board_id) elif runner == "esp32":