From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] oe-selftest: Build wic runtime requirements and images before testing
Date: Thu, 21 May 2015 11:07:58 +0300 [thread overview]
Message-ID: <1432195678-6715-1-git-send-email-ed.bartosh@linux.intel.com> (raw)
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>
---
meta/lib/oeqa/selftest/wic.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index c628b59..817685d 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -36,6 +36,12 @@ class Wic(oeSelfTest):
resultdir = "/var/tmp/wic/build/"
+ @classmethod
+ def setUpClass(cls):
+ """Build wic runtime dependencies and images used in the tests."""
+ runCmd('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)
--
2.1.4
next reply other threads:[~2015-05-21 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 8:07 Ed Bartosh [this message]
2015-05-21 11:05 ` [PATCH] oe-selftest: Build wic runtime requirements and images before testing Paul Eggleton
2015-05-21 10:23 ` [PATCH v2] " Ed Bartosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432195678-6715-1-git-send-email-ed.bartosh@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.