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>
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)