mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
devtool: selftest: Fix test_devtool_modify_git_crates_subpath bbappend check
The recipe being tested is in `testrecipe`, use that rather than the literal `zvariant`. (From OE-Core rev: f14ce354890024a3a0a3d4c7efa53eab5db7a6b1) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f87f7e1b8c
commit
6bc41cf96f
@@ -958,7 +958,7 @@ class DevtoolModifyTests(DevtoolBase):
|
|||||||
result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
|
result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
|
||||||
self.assertExists(os.path.join(tempdir, 'Cargo.toml'), 'Extracted source could not be found')
|
self.assertExists(os.path.join(tempdir, 'Cargo.toml'), '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', 'zvariant_*.bbappend'))
|
matches = glob.glob(os.path.join(self.workspacedir, 'appends', '%s_*.bbappend' % testrecipe))
|
||||||
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