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",
|
"EXCLUDE_COMPONENTS",
|
||||||
"TEST_EXCLUDE_COMPONENTS",
|
"TEST_EXCLUDE_COMPONENTS",
|
||||||
"TEST_COMPONENTS",
|
"TEST_COMPONENTS",
|
||||||
|
]
|
||||||
|
|
||||||
|
# These keys in sdkconfig.defaults are not propagated to the final sdkconfig file:
|
||||||
|
SDKCONFIG_IGNORE_OPTS = [
|
||||||
"TEST_GROUPS"
|
"TEST_GROUPS"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -268,8 +272,11 @@ class BuildSystem(object):
|
||||||
line += "\n"
|
line += "\n"
|
||||||
if cls.NAME == 'cmake':
|
if cls.NAME == 'cmake':
|
||||||
m = SDKCONFIG_LINE_REGEX.match(line)
|
m = SDKCONFIG_LINE_REGEX.match(line)
|
||||||
if m and m.group(1) in SDKCONFIG_TEST_OPTS:
|
key = m.group(1) if m else None
|
||||||
extra_cmakecache_items[m.group(1)] = m.group(2)
|
if key in SDKCONFIG_TEST_OPTS:
|
||||||
|
extra_cmakecache_items[key] = m.group(2)
|
||||||
|
continue
|
||||||
|
if key in SDKCONFIG_IGNORE_OPTS:
|
||||||
continue
|
continue
|
||||||
f_out.write(os.path.expandvars(line))
|
f_out.write(os.path.expandvars(line))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue