Skip to content

Commit 2d1d297

Browse files
[nrf fromtree] scripts: twister: handlers: Append dev-id for runner nrfutil_next
appends the --dev-id argument when using nrfutil_next runner. Signed-off-by: Robert Robinson <[email protected]> (cherry picked from commit 8e69b52)
1 parent 7de4733 commit 2d1d297

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _prepare_runner_args(self) -> tuple[list[str], list[str]]:
7676
elif runner == "esp32":
7777
extra_args.append("--esp-device")
7878
extra_args.append(board_id)
79-
elif runner in ('nrfjprog', 'nrfutil'):
79+
elif runner in ('nrfjprog', 'nrfutil', 'nrfutil_next'):
8080
extra_args.append('--dev-id')
8181
extra_args.append(board_id)
8282
elif runner == 'openocd' and self.device_config.product in ['STM32 STLink', 'STLINK-V3']:

scripts/pylib/twister/twisterlib/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def _create_command(self, runner, hardware):
566566
board_id = hardware.probe_id or hardware.id
567567
product = hardware.product
568568
if board_id is not None:
569-
if runner in ("pyocd", "nrfjprog", "nrfutil"):
569+
if runner in ("pyocd", "nrfjprog", "nrfutil", "nrfutil_next"):
570570
command_extra_args.append("--dev-id")
571571
command_extra_args.append(board_id)
572572
elif runner == "esp32":

0 commit comments

Comments
 (0)