<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 16 June 2017 at 18:01, Humberto Ibarra <span dir="ltr">&lt;<a href="mailto:humberto.ibarra.lopez@intel.com" target="_blank">humberto.ibarra.lopez@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4mc" class="a3s aXjCH m15cb1d6d7846f822">+        image_name = &#39;core-image-minimal&#39;<br>
+        clean_cmd = &#39;-c clean %s&#39; % image_name<br>
+        deploy_dir_image = get_bb_var(&#39;DEPLOY_DIR_IMAGE&#39;)<br>
+<br>
+        for pack_class in [ &quot;rpm&quot;, &quot;deb&quot;, &quot;ipk&quot;]:<br>
+            bitbake(clean_cmd)<br>
+            features = &#39;IMAGE_GEN_DEBUGFS = &quot;1&quot;\n&#39;<br>
+            features += &#39;IMAGE_FSTYPES_DEBUGFS = &quot;tar.bz2&quot;\n&#39;<br>
+            features += &#39;PACKAGE_CLASSES = &quot;package_%s&quot;&#39; % pack_class<br>
+            self.write_config(features)<br>
+<br>
+            bitbake(image_name)<br>
+            debug_files = glob.glob(os.path.join(deploy_<wbr>dir_image,&quot;*-dbg.rootfs.tar.<wbr>bz2&quot;))<br>
+            self.assertNotEqual(len(debug_<wbr>files), 0,<br>
+                    &#39;debug filesystem not generated for %s&#39; % pack_class)<br>
+<br>
+            deploy_packages_var = &#39;DEPLOY_DIR_%s&#39; % pack_class.upper()<br>
+            debug_pack_files = glob.glob(os.path.join(get_bb_<wbr>var(deploy_packages_var),<br>
+                    get_bb_var(&quot;MACHINE&quot;).replace(<wbr>&quot;-&quot;,&quot;_&quot;), &quot;*-dbg*&quot;))<br>
+            self.assertNotEqual(len(debug_<wbr>pack_files), 0,<br>
+                    &#39;debug packages not generated for %s&#39; % pack_class)</div></blockquote></div><br>Each call to get_bb_var() is a call to bitbake, so it&#39;s best to batch up these as much as possible into a single get_bb_vars() call.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Also is there any point to checking that dbg packages were created?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>