diff mbox series

[scarthgap,01/10] cve-check: Add missing call to exit_if_errors

Message ID b3d12589c26f4e86b153bbdcda774985e4e046bd.1755633925.git.steve@sakoman.com
State New
Headers show
Series [scarthgap,01/10] cve-check: Add missing call to exit_if_errors | expand

Commit Message

Steve Sakoman Aug. 19, 2025, 8:07 p.m. UTC
From: Philip Lorenz <philip.lorenz@bmw.de>

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.

Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/classes/cve-check.bbclass | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 6b8376bf17..d08c6ac670 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -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