mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
oeqa/selftest/tinfoil: Drop test for functionality removed upstream
bitbake dropped support for this piece of functionality (the test was the only user), drop the test too. (From OE-Core rev: 9ba0708e34eb038dc3ea5a877a5837c534cf165f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -65,19 +65,6 @@ class TinfoilTests(OESelftestTestCase):
|
|||||||
localdata.setVar('PN', 'hello')
|
localdata.setVar('PN', 'hello')
|
||||||
self.assertEqual('hello', localdata.getVar('BPN'))
|
self.assertEqual('hello', localdata.getVar('BPN'))
|
||||||
|
|
||||||
def test_parse_recipe_initial_datastore(self):
|
|
||||||
with bb.tinfoil.Tinfoil() as tinfoil:
|
|
||||||
tinfoil.prepare(config_only=False, quiet=2)
|
|
||||||
testrecipe = 'mdadm'
|
|
||||||
best = tinfoil.find_best_provider(testrecipe)
|
|
||||||
if not best:
|
|
||||||
self.fail('Unable to find recipe providing %s' % testrecipe)
|
|
||||||
dcopy = bb.data.createCopy(tinfoil.config_data)
|
|
||||||
dcopy.setVar('MYVARIABLE', 'somevalue')
|
|
||||||
rd = tinfoil.parse_recipe_file(best[3], config_data=dcopy)
|
|
||||||
# Check we can get variable values
|
|
||||||
self.assertEqual('somevalue', rd.getVar('MYVARIABLE'))
|
|
||||||
|
|
||||||
def test_list_recipes(self):
|
def test_list_recipes(self):
|
||||||
with bb.tinfoil.Tinfoil() as tinfoil:
|
with bb.tinfoil.Tinfoil() as tinfoil:
|
||||||
tinfoil.prepare(config_only=False, quiet=2)
|
tinfoil.prepare(config_only=False, quiet=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user