diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 17 |
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))) | ||
