Skip to content

twister: use csv to split extra argument arguments for west flags #94883

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fabiobaltieri
Copy link
Member

@fabiobaltieri fabiobaltieri commented Aug 22, 2025

Use csv instead of a plain split to split extra arguments for extra west flags, this allows correct passing of arguments that are internally escaped in quotes, such as arugments containing commas.


Deps:

Currently twister requires west to flash a board, either directly using
west-flash or indirectly through the cmake flash target.

Add an option to specify a custom flash script, this is passed a
build-dir and board-id flags so it can be used to implement custom
flashing scripts in a system that does not use west.

Signed-off-by: Fabio Baltieri <[email protected]>
Add the necessary logic to pass the custom flash_command to the pytest
harness.

Signed-off-by: Fabio Baltieri <[email protected]>
Use csv instead of a plain split to split extra arguments for extra west
flags, this allows correct passing of arguments that are internally
escaped in quotes, such as arugments containing commas.

Signed-off-by: Fabio Baltieri <[email protected]>
Copy link

@marc-hb
Copy link
Contributor

marc-hb commented Aug 22, 2025

Considering how small is the last commit, the git conflict with #93944 cannot be big. I would let these two race each other but you do you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants