mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
oe-selftest: devtool: switch away from mkelfimage
mkelfimage is about to be removed, so test_devtool_modify_git needs to use a different recipe. psplash is a reasonable choice given it uses a git repository (and probably will forever), and doesn't have too many dependencies, so change the test to use that recipe instead. (From OE-Core rev: daf583efc87faa058684dfe34df596d088caa8ef) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5623065801
commit
a77b6ee767
@@ -611,7 +611,7 @@ class DevtoolTests(DevtoolBase):
|
|||||||
@OETestID(1165)
|
@OETestID(1165)
|
||||||
def test_devtool_modify_git(self):
|
def test_devtool_modify_git(self):
|
||||||
# Check preconditions
|
# Check preconditions
|
||||||
testrecipe = 'mkelfimage'
|
testrecipe = 'psplash'
|
||||||
src_uri = get_bb_var('SRC_URI', testrecipe)
|
src_uri = get_bb_var('SRC_URI', testrecipe)
|
||||||
self.assertIn('git://', src_uri, 'This test expects the %s recipe to be a git recipe' % testrecipe)
|
self.assertIn('git://', src_uri, 'This test expects the %s recipe to be a git recipe' % testrecipe)
|
||||||
# Clean up anything in the workdir/sysroot/sstate cache
|
# Clean up anything in the workdir/sysroot/sstate cache
|
||||||
@@ -623,9 +623,9 @@ class DevtoolTests(DevtoolBase):
|
|||||||
self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
|
self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
|
||||||
self.add_command_to_tearDown('bitbake -c clean %s' % testrecipe)
|
self.add_command_to_tearDown('bitbake -c clean %s' % testrecipe)
|
||||||
result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
|
result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
|
||||||
self.assertExists(os.path.join(tempdir, 'Makefile'), 'Extracted source could not be found')
|
self.assertExists(os.path.join(tempdir, 'Makefile.am'), 'Extracted source could not be found')
|
||||||
self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created. devtool output: %s' % result.output)
|
self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created. devtool output: %s' % result.output)
|
||||||
matches = glob.glob(os.path.join(self.workspacedir, 'appends', 'mkelfimage_*.bbappend'))
|
matches = glob.glob(os.path.join(self.workspacedir, 'appends', 'psplash_*.bbappend'))
|
||||||
self.assertTrue(matches, 'bbappend not created')
|
self.assertTrue(matches, 'bbappend not created')
|
||||||
# Test devtool status
|
# Test devtool status
|
||||||
result = runCmd('devtool status')
|
result = runCmd('devtool status')
|
||||||
|
|||||||
Reference in New Issue
Block a user