Skip to content

Commit a14e8f7

Browse files
committed
west: runners: Do not ignore --no-reset in command line or arguments
Prevents this code section from enforcing reset even if --no-reset was passed at some point Signed-off-by: Camille BAUD <[email protected]>
1 parent ad431b3 commit a14e8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/run_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def do_run_common_image(command, user_args, user_runner_args, used_cmds,
416416
# reset or not. If this is not specified in the board/soc file, leave it up to
417417
# the runner's default configuration to decide if a reset should occur.
418418
if runner_cls.capabilities().reset:
419-
if board_image_count is not None:
419+
if board_image_count is not None and not '--no-reset' in runner_args:
420420
reset = True
421421

422422
for cmd in used_cmds:

0 commit comments

Comments
 (0)