diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index e6b23c6888..714637ec1e 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
| @@ -235,6 +235,17 @@ class Wic(WicTestCase): | |||
| 235 | runCmd(cmd) | 235 | runCmd(cmd) |
| 236 | self.assertEqual(1, len(glob(self.resultdir + "systemd-bootdisk-*direct"))) | 236 | self.assertEqual(1, len(glob(self.resultdir + "systemd-bootdisk-*direct"))) |
| 237 | 237 | ||
| 238 | def test_efi_bootpart(self): | ||
| 239 | """Test creation of efi-bootpart image""" | ||
| 240 | cmd = "wic create mkefidisk -e core-image-minimal -o %s" % self.resultdir | ||
| 241 | kimgtype = get_bb_var('KERNEL_IMAGETYPE', 'core-image-minimal') | ||
| 242 | self.append_config('IMAGE_EFI_BOOT_FILES = "%s;kernel"\n' % kimgtype) | ||
| 243 | runCmd(cmd) | ||
| 244 | sysroot = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools') | ||
| 245 | images = glob(self.resultdir + "mkefidisk-*.direct") | ||
| 246 | result = runCmd("wic ls %s:1/ -n %s" % (images[0], sysroot)) | ||
| 247 | self.assertIn("kernel",result.output) | ||
| 248 | |||
| 238 | def test_sdimage_bootpart(self): | 249 | def test_sdimage_bootpart(self): |
| 239 | """Test creation of sdimage-bootpart image""" | 250 | """Test creation of sdimage-bootpart image""" |
| 240 | cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir | 251 | cmd = "wic create sdimage-bootpart -e core-image-minimal -o %s" % self.resultdir |
| @@ -689,7 +700,7 @@ class Wic2(WicTestCase): | |||
| 689 | wicvars = wicvars.difference(('DEPLOY_DIR_IMAGE', 'IMAGE_BOOT_FILES', | 700 | wicvars = wicvars.difference(('DEPLOY_DIR_IMAGE', 'IMAGE_BOOT_FILES', |
| 690 | 'INITRD', 'INITRD_LIVE', 'ISODIR','INITRAMFS_IMAGE', | 701 | 'INITRD', 'INITRD_LIVE', 'ISODIR','INITRAMFS_IMAGE', |
| 691 | 'INITRAMFS_IMAGE_BUNDLE', 'INITRAMFS_LINK_NAME', | 702 | 'INITRAMFS_IMAGE_BUNDLE', 'INITRAMFS_LINK_NAME', |
| 692 | 'APPEND')) | 703 | 'APPEND', 'IMAGE_EFI_BOOT_FILES')) |
| 693 | with open(path) as envfile: | 704 | with open(path) as envfile: |
| 694 | content = dict(line.split("=", 1) for line in envfile) | 705 | content = dict(line.split("=", 1) for line in envfile) |
| 695 | # test if variables used by wic present in the .env file | 706 | # test if variables used by wic present in the .env file |
