def test_signatures(self): if self.tc.layer['type'] == LayerType.SOFTWARE and \ not self.tc.test_software_layer_signatures: raise unittest.SkipTest("Not testing for signature changes in a software layer %s." \ % self.tc.layer['name']) curr_sigs, _ = get_signatures(self.td['builddir'], failsafe=True) msg = compare_signatures(self.td['sigs'], curr_sigs) if msg is not None: self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg))
def test_refkit_conf_signature(self): """Ensure that including the refkit config does not change the signature of other layers.""" old_path = sys.path try: sys.path = [self.yocto_check_lib_path] + sys.path import checklayer self.add_refkit_layers() # Ignore world build errors, some of the non-refkit layers might be broken. old_sigs, _ = checklayer.get_signatures(self.poky_dir, failsafe=True) # Now add refkit-conf.inc, without changing the DISTRO_FEATURES. self.append_config('require conf/distro/include/refkit-config.inc') curr_sigs, _ = checklayer.get_signatures(self.poky_dir, failsafe=True) msg = checklayer.compare_signatures(old_sigs, curr_sigs) if msg is not None: self.fail( 'Including refkit-config.inc changed signatures.\n%s' % msg) finally: sys.path = old_path