cve-check: Add missing call to exit_if_errors

check_cves may raise the cve_status_not_in_db QA check. Call
exit_if_errors to make sure that the task is marked as failed when the
check is categorized as an error.

cve_status_not_in_db was in the meantime dropped in OE-Core
452e605b55ad61c08f4af7089a5a9c576ca28f7d so this change is only required
on scarthgap.

(From OE-Core rev: b3d12589c26f4e86b153bbdcda774985e4e046bd)

Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Philip Lorenz 2025-08-15 11:53:06 +02:00 committed by Steve Sakoman
parent 4d2729b88c
commit 00ade479ef

View File

@ -196,6 +196,7 @@ python do_cve_check () {
else:
bb.note("No CVE database found, skipping CVE check")
oe.qa.exit_if_errors(d)
}
addtask cve_check before do_build