mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
oe-selftest: wic: fix LocalSetup
Appended required features to build config every time LocalSetup is run to ensure that core-image-minimal is not rebuilt due to configuration changes. This should fix test22_mkgummidisk and test23_mkefidisk testcases as they depend on specific features set in LocalSetup. (From OE-Core rev: 037b757722093ced372eaae8cc9305ad2ea81ab5) 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
eac61f37e3
commit
07fc8c2dfb
@@ -48,10 +48,10 @@ class Wic(oeSelfTest):
|
|||||||
|
|
||||||
def setUpLocal(self):
|
def setUpLocal(self):
|
||||||
"""This code is executed before each test method."""
|
"""This code is executed before each test method."""
|
||||||
|
features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n'
|
||||||
|
self.append_config(features)
|
||||||
if not Wic.image_is_ready:
|
if not Wic.image_is_ready:
|
||||||
# build core-image-minimal with required features
|
# build core-image-minimal with required features
|
||||||
features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n'
|
|
||||||
self.append_config(features)
|
|
||||||
bitbake('core-image-minimal')
|
bitbake('core-image-minimal')
|
||||||
# set this class variable to avoid buiding image many times
|
# set this class variable to avoid buiding image many times
|
||||||
Wic.image_is_ready = True
|
Wic.image_is_ready = True
|
||||||
|
|||||||
Reference in New Issue
Block a user