mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
oe-selftest: generate .env only in test_image_env
Most of wic functionality doesn't depend on .wicenv file, so it's better to generate it only in test_image_env test case where it's used. (From OE-Core rev: caf9b41e1db7b565ef977200195d57b385127de9) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
21823cb466
commit
528a890554
@@ -50,7 +50,7 @@ class Wic(oeSelfTest):
|
||||
if not Wic.image_is_ready:
|
||||
bitbake('syslinux syslinux-native parted-native gptfdisk-native '
|
||||
'dosfstools-native mtools-native')
|
||||
bitbake('core-image-minimal -c do_rootfs_wicenv')
|
||||
bitbake('core-image-minimal')
|
||||
Wic.image_is_ready = True
|
||||
|
||||
rmtree(self.resultdir, ignore_errors=True)
|
||||
@@ -199,6 +199,7 @@ class Wic(oeSelfTest):
|
||||
def test_image_env(self):
|
||||
"""Test generation of <image>.env files."""
|
||||
image = 'core-image-minimal'
|
||||
self.assertEqual(0, bitbake('%s -c do_rootfs_wicenv' % image).status)
|
||||
stdir = get_bb_var('STAGING_DIR_TARGET', image)
|
||||
imgdatadir = os.path.join(stdir, 'imgdata')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user