summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-03 16:58:15 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-05 09:22:18 +0000
commit23237b46dc81fc36e6e2864feae203b6b0c5fef7 (patch)
tree6a76c41c6131ef903dde61c4254cc347cfa09c4d /meta
parentf9b58d0d11bd678863dcd3e6787e662f0443986d (diff)
downloadpoky-23237b46dc81fc36e6e2864feae203b6b0c5fef7.tar.gz
selftest: wic: use wic-tools recipe to get STAGING_DIR
STAGING_DIR variable is used to get path to a boot dir. It's better to use wic-tools recipe to it as it contains all bootloader artifacts. Modified test_build_artifacts and test_rootfs_artifacts to use wic-tools target to get STAGING_DIR. (From OE-Core rev: eb648ac5566fbcc679e8544fd8403a730ce71058) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/wic.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index ebf3d18843..07b8312a21 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -212,9 +212,12 @@ class Wic(oeSelfTest):
212 @testcase(1212) 212 @testcase(1212)
213 def test_build_artifacts(self): 213 def test_build_artifacts(self):
214 """Test wic create directdisk providing all artifacts.""" 214 """Test wic create directdisk providing all artifacts."""
215 bbvars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) 215 variables = (('STAGING_DATADIR', 'wic-tools'),
216 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE', 'IMAGE_ROOTFS')) 216 ('RECIPE_SYSROOT_NATIVE', 'wic-tools'),
217 bbvars['recipe_sysroot_native'] = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools') 217 ('DEPLOY_DIR_IMAGE', 'core-image-minimal'),
218 ('IMAGE_ROOTFS', 'core-image-minimal'))
219 bbvars = {var.lower(): get_bb_var(var, recipe) \
220 for var, recipe in variables}
218 bbvars['resultdir'] = self.resultdir 221 bbvars['resultdir'] = self.resultdir
219 status = runCmd("wic create directdisk " 222 status = runCmd("wic create directdisk "
220 "-b %(staging_datadir)s " 223 "-b %(staging_datadir)s "
@@ -318,9 +321,12 @@ class Wic(oeSelfTest):
318 @testcase(1269) 321 @testcase(1269)
319 def test_rootfs_artifacts(self): 322 def test_rootfs_artifacts(self):
320 """Test usage of rootfs plugin with rootfs paths""" 323 """Test usage of rootfs plugin with rootfs paths"""
321 bbvars = dict((var.lower(), get_bb_var(var, 'core-image-minimal')) 324 variables = (('STAGING_DATADIR', 'wic-tools'),
322 for var in ('STAGING_DATADIR', 'DEPLOY_DIR_IMAGE', 'IMAGE_ROOTFS')) 325 ('RECIPE_SYSROOT_NATIVE', 'wic-tools'),
323 bbvars['recipe_sysroot_native'] = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools') 326 ('DEPLOY_DIR_IMAGE', 'core-image-minimal'),
327 ('IMAGE_ROOTFS', 'core-image-minimal'))
328 bbvars = {var.lower(): get_bb_var(var, recipe) \
329 for var, recipe in variables}
324 bbvars['wks'] = "directdisk-multi-rootfs" 330 bbvars['wks'] = "directdisk-multi-rootfs"
325 bbvars['resultdir'] = self.resultdir 331 bbvars['resultdir'] = self.resultdir
326 status = runCmd("wic create %(wks)s " 332 status = runCmd("wic create %(wks)s "