]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: Build wic runtime requirements and images before testing
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 21 May 2015 10:23:54 +0000 (13:23 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 May 2015 06:56:25 +0000 (07:56 +0100)
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>
meta/lib/oeqa/selftest/wic.py

index c628b59bc2e06cea4169a8ec2d7375fd607ebcff..a2ce2cb63e296c8a22eaf3015612803e10171dbe 100644 (file)
@@ -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)