Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/4] insane: fix expanded-d test
@ 2016-11-24 23:44 Ross Burton
  2016-11-24 23:44 ` [PATCH 2/4] insane: factor out the test matrix processing Ross Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ross Burton @ 2016-11-24 23:44 UTC (permalink / raw)
  To: openembedded-core

This test should be looking for the expanded value of ${D} in the expanded value
of pkg_postinst and so on, but one of the getVar() calls was passing
expand=False so the test would never be true.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/insane.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index d51e73e..9f3065f 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1000,9 +1000,8 @@ def package_qa_check_expanded_d(path,name,d,elf,messages):
     for pak in packages:
     # Go through all variables and check if expanded D is found, warn the user accordingly
         for var in 'FILES','pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
-            bbvar = d.getVar(var + "_" + pak, False)
+            bbvar = d.getVar(var + "_" + pak, True)
             if bbvar:
-                # Bitbake expands ${D} within bbvar during the previous step, so we check for its expanded value
                 if expanded_d in bbvar:
                     if var == 'FILES':
                         package_qa_add_message(messages, "expanded-d", "FILES in %s recipe should not contain the ${D} variable as it references the local build directory not the target filesystem, best solution is to remove the ${D} reference" % pak)
-- 
2.8.1



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

end of thread, other threads:[~2016-11-24 23:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 23:44 [PATCH 1/4] insane: fix expanded-d test Ross Burton
2016-11-24 23:44 ` [PATCH 2/4] insane: factor out the test matrix processing Ross Burton
2016-11-24 23:44 ` [PATCH 3/4] insane: add QAPKGTEST, a package-wide equivilant to QAPATHTEST Ross Burton
2016-11-24 23:44 ` [PATCH 4/4] insane: rewrite the expanded-d test as a QAPKGTEST Ross Burton

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