Did I find the right examples for you? yes no

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

src/o/e/oe-core-HEAD/meta/lib/oe/tests/test_utils.py   oe-core(Download)
 
        d = bb.data_smart.DataSmart()
        d.setVar("PN", "foo")
 
        d.setVar("PACKAGES", "foo foo-doc foo-dev")
        pkgs = packages_filter_out_system(d)
        self.assertEqual(pkgs, [])
 
        d.setVar("PACKAGES", "foo foo-doc foo-data foo-dev")
        self.assertEqual(pkgs, ["foo-data"])
 
        d.setVar("PACKAGES", "foo foo-locale-en-gb")
        pkgs = packages_filter_out_system(d)
        self.assertEqual(pkgs, [])
 
        d.setVar("PACKAGES", "foo foo-data foo-locale-en-gb")