@@ -411,11 +411,17 @@ def do_run_common_image(command, user_args, user_runner_args, used_cmds,
411
411
412
412
i = i - 1
413
413
414
+ # Arguments in this order to allow specific to override general:
415
+ #
416
+ # - runner-specific runners.yaml arguments
417
+ # - user-provided command line arguments
418
+ final_argv = runners_yaml ['args' ][runner_name ] + runner_args
419
+
414
420
# If flashing multiple images, the runner supports reset after flashing and
415
421
# the board has enabled this functionality, check if the board should be
416
422
# reset or not. If this is not specified in the board/soc file, leave it up to
417
423
# the runner's default configuration to decide if a reset should occur.
418
- if runner_cls .capabilities ().reset :
424
+ if runner_cls .capabilities ().reset and '--no-reset' not in final_argv :
419
425
if board_image_count is not None :
420
426
reset = True
421
427
@@ -449,15 +455,9 @@ def do_run_common_image(command, user_args, user_runner_args, used_cmds,
449
455
break
450
456
451
457
if reset :
452
- runner_args .append ('--reset' )
458
+ final_argv .append ('--reset' )
453
459
else :
454
- runner_args .append ('--no-reset' )
455
-
456
- # Arguments in this order to allow specific to override general:
457
- #
458
- # - runner-specific runners.yaml arguments
459
- # - user-provided command line arguments
460
- final_argv = runners_yaml ['args' ][runner_name ] + runner_args
460
+ final_argv .append ('--no-reset' )
461
461
462
462
# 'user_args' contains parsed arguments which are:
463
463
#
0 commit comments