summaryrefslogtreecommitdiff
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-23 07:56:25 +0100
commit379c9bb7ffae5b40c5450e968cdde600b6edd3f3 (patch)
tree8cd6e472769115fda3ada4c65cc6540f0112763b /meta/lib
parentc4a386556afaaab3fcbb7e96274ff36e5bdb4b62 (diff)
downloadopenembedded-core-379c9bb7ffae5b40c5450e968cdde600b6edd3f3.tar.gz
openembedded-core-379c9bb7ffae5b40c5450e968cdde600b6edd3f3.tar.bz2
openembedded-core-379c9bb7ffae5b40c5450e968cdde600b6edd3f3.zip
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] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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
from shutil import rmtree
from oeqa.selftest.base import oeSelfTest
-from oeqa.utils.commands import runCmd
+from oeqa.utils.commands import runCmd, bitbake
class Wic(oeSelfTest):
"""Wic test class."""
resultdir = "/var/tmp/wic/build/"
+ @classmethod
+ def setUpClass(cls):
+ """Build wic runtime dependencies and images used in the tests."""
+ bitbake('syslinux syslinux-native parted-native '
+ 'dosfstools-native mtools-native core-image-minimal')
+
def setUp(self):
"""This code is executed before each test method."""
rmtree(self.resultdir, ignore_errors=True)