path: root/meta/classes/ptest.bbclass
diff options
authorMike Crowe <>2021-10-15 14:39:53 (GMT)
committerRichard Purdie <>2021-10-17 10:56:32 (GMT)
commit51b1611e204b32b3e65176ef86d4562e2f330835 (patch)
tree7845a123d2eddbc2c9d5f9f72e1c2be9c2dea730 /meta/classes/ptest.bbclass
parent25675706b6339b6a11e69dbad1c885a4b79fc57c (diff)
lib/oe/qa,insane: Move extra error handling functions to library
Extract package_qa_write_error, package_qa_handle_error and package_qa_add_message functions from insane.bbclass to lib/oe/ and drop the package_qa_ prefixes. Update various bbclasses to use the new functions. No import is required since base.bbclass puts in OE_IMPORTS. Stop requiring callers to manually track whether a fatal error has been encountered via a "sane" flag. Instead replace the QA_SANE variable with QA_ERRORS_FOUND and call or at the end of each task. Inspired by discussion resulting from and (From OE-Core rev: f0ad152ef4cc15c042bc9eeefb6af096d054b220) Signed-off-by: Mike Crowe <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/classes/ptest.bbclass')
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 77614ae..1ec23c0 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -129,4 +129,4 @@ def package_qa_check_missing_ptest(pn, d, messages):
129 129
130 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'), d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split() 130 enabled_ptests = " ".join([d.getVar('PTESTS_FAST'), d.getVar('PTESTS_SLOW'), d.getVar('PTESTS_PROBLEMS')]).split()
131 if (pn + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests: 131 if (pn + "-ptest").replace(d.getVar('MLPREFIX'), '') not in enabled_ptests:
132 package_qa_handle_error("missing-ptest", "supports ptests but is not included in oe-core's", d) 132"missing-ptest", "supports ptests but is not included in oe-core's", d)