Skip to contentSkip to conversation

oe-selftest: wic: fix LocalSetup

PATCH New Ed Bartosh 1 participant 1 message Oct 2, 2015

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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.

---
 meta/lib/oeqa/selftest/wic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/lib/oeqa/selftest/wic.py +2 -2
index 0a35935..7625505 100644
@@ -48,10 +48,10 @@ class Wic(oeSelfTest):
 
     def setUpLocal(self):
         """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:
             # build core-image-minimal with required features
-            features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n'
-            self.append_config(features)
             bitbake('core-image-minimal')
             # set this class variable to avoid buiding image many times
             Wic.image_is_ready = True
Signature · 1 line
2.1.4