-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
west: runners: Do not ignore --no-reset in command line or arguments #87138
Conversation
scripts/west_commands/run_common.py
Outdated
@@ -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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
a14e8f7
to
64107ec
Compare
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]>
64107ec
to
f5368e5
Compare
Ok it should be good now. |
Prevents this code section from enforcing reset even if --no-reset was passed at some point
fixes #87261