Skip to content

Commit 65f4550

Browse files
tejlmandcarlescufi
authored andcommitted
west: fix warning on user args in run_common
When using west runners with multi domains we want to warn users when they user runner args on multi domain builds. Therefore fix the `>1` to the correct `>0` which ensures the warning is printed in all expected cases. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent f725107 commit 65f4550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/run_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def do_run_common(command, user_args, user_runner_args, domains=None):
169169
# Get the user specified domains.
170170
domains = load_domains(build_dir).get_domains(user_args.domain)
171171

172-
if len(domains) > 1 and len(user_runner_args) > 1:
172+
if len(domains) > 1 and len(user_runner_args) > 0:
173173
log.wrn("Specifying runner options for multiple domains is experimental.\n"
174174
"If problems are experienced, please specify a single domain "
175175
"using '--domain <domain>'")

0 commit comments

Comments
 (0)