summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-26 19:12:36 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 23:08:36 +0100
commit673343414f4c9db32e3e0c58f07c59954bab734c (patch)
tree4762cf9f7c51923335e2be492df91a9385e954e8 /meta/lib
parentba2396831d1ce3a0a7363098ef589408e6beb02e (diff)
downloadpoky-673343414f4c9db32e3e0c58f07c59954bab734c.tar.gz
wic: Test rootfs plugin using rootfs paths
Added testcase to create multi-rootfs images using rootfs plugin with paths to rootfs directories in wic command line. (From OE-Core rev: 8becfc2281282a2e63b3bf511936df36315c9cb1) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/wic.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 3cfc2ffcba..0c503ef53a 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -143,3 +143,20 @@ class Wic(oeSelfTest):
143 "--rootfs rootfs2=core-image-minimal" \ 143 "--rootfs rootfs2=core-image-minimal" \
144 % wks).status) 144 % wks).status)
145 self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks))) 145 self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks)))
146
147 def test17_rootfs_artifacts(self):
148 """Test usage of rootfs plugin with rootfs paths"""
149 vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \
150 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE',
151 'STAGING_DIR_NATIVE', 'IMAGE_ROOTFS'))
152 vars['wks'] = "directdisk-multi-rootfs"
153 status = runCmd("wic create %(wks)s "
154 "-b %(staging_datadir)s "
155 "-k %(deploy_dir_image)s "
156 "-n %(staging_dir_native)s "
157 "--rootfs-dir rootfs1=%(image_rootfs)s "
158 "--rootfs-dir rootfs2=%(image_rootfs)s" \
159 % vars).status
160 self.assertEqual(0, status)
161 self.assertEqual(1, len(glob(self.resultdir + \
162 "%(wks)s-*.direct" % vars)))