diff options
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 6bc4b60519..817a820450 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -39,12 +39,21 @@ class Wic(oeSelfTest): | |||
39 | 39 | ||
40 | @classmethod | 40 | @classmethod |
41 | def setUpClass(cls): | 41 | def setUpClass(cls): |
42 | """Build wic runtime dependencies and images used in the tests.""" | 42 | """Build wic runtime dependencies.""" |
43 | bitbake('syslinux syslinux-native parted-native gptfdisk-native ' | 43 | bitbake('syslinux syslinux-native parted-native gptfdisk-native ' |
44 | 'dosfstools-native mtools-native core-image-minimal') | 44 | 'dosfstools-native mtools-native') |
45 | Wic.image_is_ready = False | ||
45 | 46 | ||
46 | def setUp(self): | 47 | def setUp(self): |
47 | """This code is executed before each test method.""" | 48 | """This code is executed before each test method.""" |
49 | if not Wic.image_is_ready: | ||
50 | # build core-image-minimal with required features | ||
51 | features = 'IMAGE_FSTYPES += " hddimg"\nMACHINE_FEATURES_append = " efi"\n' | ||
52 | self.append_config(features) | ||
53 | bitbake('core-image-minimal') | ||
54 | # set this class variable to avoid buiding image many times | ||
55 | Wic.image_is_ready = True | ||
56 | |||
48 | rmtree(self.resultdir, ignore_errors=True) | 57 | rmtree(self.resultdir, ignore_errors=True) |
49 | 58 | ||
50 | def test01_help(self): | 59 | def test01_help(self): |