cmake: silence "WARNING: ASSERTs enabled" when CONFIG_TEST is true
TEST configurations don't need to be warned that they're using test techniques with some side-effects. On a typical sanitycheck invocation, this warning is one of the only two that appears in most test runs. In other words this commit gets rid of half of the entire grep -ri '[[:blank:]]warn' noise that obscures any work-in-progress warnings or platform specific warnings in the logs (typically: device tree warnings). Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
09821e545c
commit
83723109be
|
@ -1396,6 +1396,7 @@ add_subdirectory(cmake/flash)
|
||||||
add_subdirectory(cmake/usage)
|
add_subdirectory(cmake/usage)
|
||||||
add_subdirectory(cmake/reports)
|
add_subdirectory(cmake/reports)
|
||||||
|
|
||||||
|
if(NOT CONFIG_TEST)
|
||||||
if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT))
|
if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT))
|
||||||
message(WARNING "
|
message(WARNING "
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
@ -1404,6 +1405,7 @@ if(CONFIG_ASSERT AND (NOT CONFIG_FORCE_NO_ASSERT))
|
||||||
------------------------------------------------------------"
|
------------------------------------------------------------"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_BOARD_DEPRECATED)
|
if(CONFIG_BOARD_DEPRECATED)
|
||||||
message(WARNING "
|
message(WARNING "
|
||||||
|
|
Loading…
Reference in a new issue