Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: handle INSANE_SKIP for license-checksum
@ 2016-08-18 12:37 Awais Belal
  2016-08-18 16:49 ` Burton, Ross
  2016-08-18 16:55 ` Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Awais Belal @ 2016-08-18 12:37 UTC (permalink / raw)
  To: openembedded-core

The function populate_lic_qa_checksum() is used to do the
QA test for license-checksum but it does not handle the
scenario where a package adds license-checksum to its
INSANE_SKIP and hence fails in such condition.
This patch adds handling of INSANE_SKIP to the
populate_lic_qa_checksum() function so it returns
cleanly in such a scenario.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 meta/classes/insane.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 2cb8cc0..719ecd4 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -697,6 +697,10 @@ python populate_lic_qa_checksum() {
     if lic == "CLOSED":
         return
 
+    if 'license-checksum' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+        bb.note("Skipping %s for license-checksum QA test", pn)
+        return
+
     if not lic_files and d.getVar('SRC_URI', True):
         package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)
         return
-- 
1.9.1



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

end of thread, other threads:[~2016-08-18 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18 12:37 [PATCH] insane.bbclass: handle INSANE_SKIP for license-checksum Awais Belal
2016-08-18 16:49 ` Burton, Ross
2016-08-18 16:55 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox