summaryrefslogtreecommitdiffstats
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:01:11 +0100
commit8becfc2281282a2e63b3bf511936df36315c9cb1 (patch)
tree6f75134bc4263b25312a2a28a96cdca7b1066d7c
parent2be905feff3c2166adaa8f50ad09d4b6896461ab (diff)
downloadopenembedded-core-contrib-8becfc2281282a2e63b3bf511936df36315c9cb1.tar.gz
openembedded-core-contrib-8becfc2281282a2e63b3bf511936df36315c9cb1.tar.bz2
openembedded-core-contrib-8becfc2281282a2e63b3bf511936df36315c9cb1.zip
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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-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):
"--rootfs rootfs2=core-image-minimal" \
% wks).status)
self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks)))
+
+ def test17_rootfs_artifacts(self):
+ """Test usage of rootfs plugin with rootfs paths"""
+ vars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) \
+ for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE',
+ 'STAGING_DIR_NATIVE', 'IMAGE_ROOTFS'))
+ vars['wks'] = "directdisk-multi-rootfs"
+ status = runCmd("wic create %(wks)s "
+ "-b %(staging_datadir)s "
+ "-k %(deploy_dir_image)s "
+ "-n %(staging_dir_native)s "
+ "--rootfs-dir rootfs1=%(image_rootfs)s "
+ "--rootfs-dir rootfs2=%(image_rootfs)s" \
+ % vars).status
+ self.assertEqual(0, status)
+ self.assertEqual(1, len(glob(self.resultdir + \
+ "%(wks)s-*.direct" % vars)))