Skip to content

west: runners: Do not ignore --no-reset in command line or arguments #87138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

VynDragon
Copy link
Collaborator

@VynDragon VynDragon commented Mar 14, 2025

Prevents this code section from enforcing reset even if --no-reset was passed at some point

fixes #87261

@zephyrbot zephyrbot added size: XS A PR changing only a single line of code area: West West utility labels Mar 14, 2025
@@ -416,7 +416,7 @@ def do_run_common_image(command, user_args, user_runner_args, used_cmds,
# reset or not. If this is not specified in the board/soc file, leave it up to
# the runner's default configuration to decide if a reset should occur.
if runner_cls.capabilities().reset:
if board_image_count is not None:
if board_image_count is not None and not '--no-reset' in runner_args:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if board_image_count is not None and not '--no-reset' in runner_args:
if board_image_count is not None and '--no-reset' not in runner_args:

Copy link
Collaborator Author

@VynDragon VynDragon Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considered adding these kind of stuffs in the check compliance scripts? I keep hitting random check fails like that on git ci despite running the recommended pre-PR checks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@VynDragon VynDragon force-pushed the fix_runners_noreset branch from a14e8f7 to 64107ec Compare March 14, 2025 19:24
@VynDragon
Copy link
Collaborator Author

DNM, it is incomplete and doesnt handle when it's set from out of command line

Prevents this code section from enforcing reset even
if --no-reset was passed at some point

Signed-off-by: Camille BAUD <[email protected]>
@VynDragon VynDragon force-pushed the fix_runners_noreset branch from 64107ec to f5368e5 Compare March 14, 2025 19:42
@VynDragon
Copy link
Collaborator Author

Ok it should be good now.

@kartben kartben merged commit 9ad7f84 into zephyrproject-rtos:main Mar 19, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JLink runner resets uC with "west flash" even "--no-reset-after-load" argument set
6 participants