diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-10-02 16:03:17 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-07 00:09:10 +0100 |
| commit | 07fc8c2dfba6251d074b9499e59e56799c0067aa (patch) | |
| tree | fdb61dc1c4251fada8a000066d2abb4f9be94183 | |
| parent | eac61f37e36099f74485dab398b57f3812826d17 (diff) | |
| download | poky-07fc8c2dfba6251d074b9499e59e56799c0067aa.tar.gz | |
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>
| -rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 0a35935aac..7625505463 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
| @@ -48,10 +48,10 @@ class Wic(oeSelfTest): | |||
| 48 | 48 | ||
| 49 | def setUpLocal(self): | 49 | def setUpLocal(self): |
| 50 | """This code is executed before each test method.""" | 50 | """This code is executed before each test method.""" |
| 51 | features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n' | ||
| 52 | self.append_config(features) | ||
| 51 | if not Wic.image_is_ready: | 53 | if not Wic.image_is_ready: |
| 52 | # build core-image-minimal with required features | 54 | # build core-image-minimal with required features |
| 53 | features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n' | ||
| 54 | self.append_config(features) | ||
| 55 | bitbake('core-image-minimal') | 55 | bitbake('core-image-minimal') |
| 56 | # set this class variable to avoid buiding image many times | 56 | # set this class variable to avoid buiding image many times |
| 57 | Wic.image_is_ready = True | 57 | Wic.image_is_ready = True |
