diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-05-21 13:23:54 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-24 07:19:20 +0100 |
commit | 29d5503a543a28866616c7dcd034b68cf175cf48 (patch) | |
tree | cfcbd9a0e2c76c270fccd39f3d898f5742f9871c /meta | |
parent | 7a4d637402dd2cbd494f3d361d01b6dbe3051f03 (diff) | |
download | poky-29d5503a543a28866616c7dcd034b68cf175cf48.tar.gz |
oe-selftest: Build wic runtime requirements and images before testing
Some native tools (syslinux, parted, mtools, etc) are required
by wic to produce images. Unit tests fail if the tools are
not available.
Baked tools and image-core-minimal used by wic before running tests.
[YOCTO #7730]
(From OE-Core rev: 379c9bb7ffae5b40c5450e968cdde600b6edd3f3)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index c628b59bc2..a2ce2cb63e 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -29,13 +29,19 @@ from glob import glob | |||
29 | from shutil import rmtree | 29 | from shutil import rmtree |
30 | 30 | ||
31 | from oeqa.selftest.base import oeSelfTest | 31 | from oeqa.selftest.base import oeSelfTest |
32 | from oeqa.utils.commands import runCmd | 32 | from oeqa.utils.commands import runCmd, bitbake |
33 | 33 | ||
34 | class Wic(oeSelfTest): | 34 | class Wic(oeSelfTest): |
35 | """Wic test class.""" | 35 | """Wic test class.""" |
36 | 36 | ||
37 | resultdir = "/var/tmp/wic/build/" | 37 | resultdir = "/var/tmp/wic/build/" |
38 | 38 | ||
39 | @classmethod | ||
40 | def setUpClass(cls): | ||
41 | """Build wic runtime dependencies and images used in the tests.""" | ||
42 | bitbake('syslinux syslinux-native parted-native ' | ||
43 | 'dosfstools-native mtools-native core-image-minimal') | ||
44 | |||
39 | def setUp(self): | 45 | def setUp(self): |
40 | """This code is executed before each test method.""" | 46 | """This code is executed before each test method.""" |
41 | rmtree(self.resultdir, ignore_errors=True) | 47 | rmtree(self.resultdir, ignore_errors=True) |