<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 16 June 2017 at 18:01, Humberto Ibarra <span dir="ltr"><<a href="mailto:humberto.ibarra.lopez@intel.com" target="_blank">humberto.ibarra.lopez@intel.com</a>></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 = 'core-image-minimal'<br>
+ clean_cmd = '-c clean %s' % image_name<br>
+ deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE')<br>
+<br>
+ for pack_class in [ "rpm", "deb", "ipk"]:<br>
+ bitbake(clean_cmd)<br>
+ features = 'IMAGE_GEN_DEBUGFS = "1"\n'<br>
+ features += 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"\n'<br>
+ features += 'PACKAGE_CLASSES = "package_%s"' % pack_class<br>
+ self.write_config(features)<br>
+<br>
+ bitbake(image_name)<br>
+ debug_files = glob.glob(os.path.join(deploy_<wbr>dir_image,"*-dbg.rootfs.tar.<wbr>bz2"))<br>
+ self.assertNotEqual(len(debug_<wbr>files), 0,<br>
+ 'debug filesystem not generated for %s' % pack_class)<br>
+<br>
+ deploy_packages_var = 'DEPLOY_DIR_%s' % pack_class.upper()<br>
+ debug_pack_files = glob.glob(os.path.join(get_bb_<wbr>var(deploy_packages_var),<br>
+ get_bb_var("MACHINE").replace(<wbr>"-","_"), "*-dbg*"))<br>
+ self.assertNotEqual(len(debug_<wbr>pack_files), 0,<br>
+ 'debug packages not generated for %s' % pack_class)</div></blockquote></div><br>Each call to get_bb_var() is a call to bitbake, so it'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>