summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-05-21 13:23:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-24 07:19:20 +0100
commit29d5503a543a28866616c7dcd034b68cf175cf48 (patch)
treecfcbd9a0e2c76c270fccd39f3d898f5742f9871c /meta/lib
parent7a4d637402dd2cbd494f3d361d01b6dbe3051f03 (diff)
downloadpoky-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/lib')
-rw-r--r--meta/lib/oeqa/selftest/wic.py8
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
29from shutil import rmtree 29from shutil import rmtree
30 30
31from oeqa.selftest.base import oeSelfTest 31from oeqa.selftest.base import oeSelfTest
32from oeqa.utils.commands import runCmd 32from oeqa.utils.commands import runCmd, bitbake
33 33
34class Wic(oeSelfTest): 34class 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)