mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 23:02:25 +02:00
lib/oeqa/selftest/oescripts: make test_cleanup_workdir use selftest-ed
Use a recipe which is bundled in the meta-selftest layer for this test, rather than relying on OE-Core remaining static (or updating the tests when OE-Core changes recipes). Tested with oe-selftest -r oescripts.TestScripts.test_cleanup_workdir (From OE-Core rev: f8aabeb1a755f3312782a7b64fe863c155510b33) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
52c10b6e58
commit
e663c6145a
@@ -14,10 +14,10 @@ class TestScripts(oeSelfTest):
|
||||
|
||||
@testcase(300)
|
||||
def test_cleanup_workdir(self):
|
||||
path = os.path.dirname(get_bb_var('WORKDIR', 'gzip'))
|
||||
old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta/recipes-extended/gzip/gzip_1.3.12.bb')
|
||||
old_version = '1.3.12'
|
||||
bitbake("-c clean gzip")
|
||||
path = os.path.dirname(get_bb_var('WORKDIR', 'selftest-ed'))
|
||||
old_version_recipe = os.path.join(get_bb_var('COREBASE'), 'meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb')
|
||||
old_version = '0.5'
|
||||
bitbake("-c clean selftest-ed")
|
||||
bitbake("-c clean -b %s" % old_version_recipe)
|
||||
|
||||
if os.path.exists(path):
|
||||
@@ -25,7 +25,7 @@ class TestScripts(oeSelfTest):
|
||||
else:
|
||||
initial_contents = []
|
||||
|
||||
bitbake('gzip')
|
||||
bitbake('selftest-ed')
|
||||
intermediary_contents = os.listdir(path)
|
||||
bitbake("-b %s" % old_version_recipe)
|
||||
runCmd('cleanup-workdir')
|
||||
|
||||
Reference in New Issue
Block a user