Skip to content

Commit 483c767

Browse files
tejlmandkartben
authored andcommitted
scripts: support quoted sysbuild Kconfig settings in twister
Kconfig settings of string type is passed to CMake with quotes to ensure they are properly handled, for example when specified in testcase.yml as > extra_args: > - CONFIG_FOO="bar" Support sysbuild Kconfig settings `SB_CONFIG` by performing the same quoting for settings starting with `SB_CONFIG_`. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent da45a76 commit 483c767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/pylib/twister/twisterlib/runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,8 @@ def cmake_assemble_args(extra_args, handler, extra_conf_files, extra_overlay_con
16661666
extra_dtc_overlay_files, cmake_extra_args,
16671667
build_dir):
16681668
# Retain quotes around config options
1669-
config_options = [arg for arg in extra_args if arg.startswith("CONFIG_")]
1670-
args = [arg for arg in extra_args if not arg.startswith("CONFIG_")]
1669+
config_options = [arg for arg in extra_args if arg.startswith(("CONFIG_", "SB_CONFIG_"))]
1670+
args = [arg for arg in extra_args if not arg.startswith(("CONFIG_", "SB_CONFIG_"))]
16711671

16721672
args_expanded = ["-D{}".format(a.replace('"', '\"')) for a in config_options]
16731673

0 commit comments

Comments
 (0)