From: Martin Jansa Date: Mon, 21 Aug 2017 20:56:24 +0000 (+0200) Subject: insane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ab2c7b08359f22f74106339841f8134123adf4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git insane.bbclass: write QA issues to log file only when they are in ERROR_QA or WARN_QA * QA check which aren't included in WARN_QA and ERROR_QA are shown during the build only as NOTE message (not shown at all with default knotty setting), so it might be surprising to see them later in qa.log file Signed-off-by: Martin Jansa Signed-off-by: Ross Burton --- diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index aa304f108e1..78b41caf993 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -184,12 +184,13 @@ def package_qa_write_error(type, error, d): f.write("%s: %s [%s]\n" % (p, error, type)) def package_qa_handle_error(error_class, error_msg, d): - package_qa_write_error(error_class, error_msg, d) if error_class in (d.getVar("ERROR_QA") or "").split(): + package_qa_write_error(error_class, error_msg, d) bb.error("QA Issue: %s [%s]" % (error_msg, error_class)) d.setVar("QA_SANE", False) return False elif error_class in (d.getVar("WARN_QA") or "").split(): + package_qa_write_error(error_class, error_msg, d) bb.warn("QA Issue: %s [%s]" % (error_msg, error_class)) else: bb.note("QA Issue: %s [%s]" % (error_msg, error_class))