tools: build_apps: fix make warning due to unused TEST_GROUPS variable
TEST_GROUPS can be included in the unit-test-app config file, to restrict the list of tests to be executed. However this option is not used at build time, so adding it as a CMake variable along with TEST_COMPONENTS and other options results in a CMake warning. Fix by not passing this variable to CMake, and not including it in the final sdkconfig file.
This commit is contained in:
parent
23dd439bc8
commit
1aacb6e2cf
1 changed files with 9 additions and 2 deletions
|
@ -25,6 +25,10 @@ SDKCONFIG_TEST_OPTS = [
|
|||
"EXCLUDE_COMPONENTS",
|
||||
"TEST_EXCLUDE_COMPONENTS",
|
||||
"TEST_COMPONENTS",
|
||||
]
|
||||
|
||||
# These keys in sdkconfig.defaults are not propagated to the final sdkconfig file:
|
||||
SDKCONFIG_IGNORE_OPTS = [
|
||||
"TEST_GROUPS"
|
||||
]
|
||||
|
||||
|
@ -268,8 +272,11 @@ class BuildSystem(object):
|
|||
line += "\n"
|
||||
if cls.NAME == 'cmake':
|
||||
m = SDKCONFIG_LINE_REGEX.match(line)
|
||||
if m and m.group(1) in SDKCONFIG_TEST_OPTS:
|
||||
extra_cmakecache_items[m.group(1)] = m.group(2)
|
||||
key = m.group(1) if m else None
|
||||
if key in SDKCONFIG_TEST_OPTS:
|
||||
extra_cmakecache_items[key] = m.group(2)
|
||||
continue
|
||||
if key in SDKCONFIG_IGNORE_OPTS:
|
||||
continue
|
||||
f_out.write(os.path.expandvars(line))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue