All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: write QA issues to log file only when thei are in ERROR_QA or WARN_QA
@ 2017-08-21  6:56 Martin Jansa
  2017-08-21  7:01 ` Martin Jansa
  2017-08-21 20:56 ` [PATCHv2] insane.bbclass: write QA issues to log file only when they " Martin Jansa
  0 siblings, 2 replies; 7+ messages in thread
From: Martin Jansa @ 2017-08-21  6:56 UTC (permalink / raw)
  To: openembedded-core

* 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 <Martin.Jansa@gmail.com>
---
 meta/classes/insane.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index b7177c9b32..44e4a01c92 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))
-- 
2.14.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-21 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21  6:56 [PATCH] insane.bbclass: write QA issues to log file only when thei are in ERROR_QA or WARN_QA Martin Jansa
2017-08-21  7:01 ` Martin Jansa
2017-08-21 20:56 ` [PATCHv2] insane.bbclass: write QA issues to log file only when they " Martin Jansa
2017-08-21 21:07   ` Richard Purdie
2017-08-21 21:13     ` Martin Jansa
2017-08-21 21:23       ` Richard Purdie
2017-08-21 21:27         ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.