[oe-commits] Ed Bartosh : oe-selftest: Build wic runtime requirements and images before testing

git at git.openembedded.org git at git.openembedded.org
Sun May 24 06:21:18 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 379c9bb7ffae5b40c5450e968cdde600b6edd3f3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=379c9bb7ffae5b40c5450e968cdde600b6edd3f3

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Thu May 21 13:23:54 2015 +0300

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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/lib/oeqa/selftest/wic.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index c628b59..a2ce2cb 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)



More information about the Openembedded-commits mailing list