The append override on ERROR_QA uses bb.utils.contains to check for a
string inside a variable, and return the exact same string if true.
This can be simplified by a call to bb.utils.filter, since the result is
the same, and the inline is shorter.
Replace "bb.utils.contains(A, 'a', ' a', '', d)" by " bb.utils.filter(A, 'a', d)".
Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
${CHECKLAYER_REQUIRED_TESTS}"
# Add usrmerge QA check based on distro feature
-ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
+ERROR_QA:append = " ${@bb.utils.filter('DISTRO_FEATURES', 'usrmerge', d)}"
WARN_QA:append:layer-core = " missing-metadata missing-maintainer"
FAKEROOT_QA = "host-user-contaminated"