Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/o/e/oe-core-HEAD/meta/lib/oeqa/selftest/prservice.py   oe-core(Download)
    def get_pr_version(self, package_name):
        pkgdata_dir = get_bb_var('PKGDATA_DIR')
        package_data_file = os.path.join(pkgdata_dir, 'runtime', package_name)
        package_data = ftools.read_file(package_data_file)
        find_pr = re.search("PKGR: r[0-9]+\.([0-9]+)", package_data)

src/o/e/oe-core-HEAD/meta/lib/oeqa/selftest/bblayers.py   oe-core(Download)
        bb_file = os.path.join(self.builddir, 'test/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb')
        self.assertTrue(os.path.isfile(bb_file))
        contents = ftools.read_file(bb_file)
        find_in_contents = re.search("##### bbappended from meta-selftest #####\n(.*\n)*include test_recipe.inc", contents)
        shutil.rmtree(os.path.join(self.builddir, 'test'))