summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/wic.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index b7fe52f45e..dcb88bacad 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -547,3 +547,17 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
547 status, output = qemu.run_serial(cmd) 547 status, output = qemu.run_serial(cmd)
548 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output)) 548 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output))
549 self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt') 549 self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt')
550
551 def test_qemu_efi(self):
552 """Test core-image-minimal efi image under qemu"""
553 config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "mkefidisk.wks"\n'
554 self.append_config(config)
555 self.assertEqual(0, bitbake('core-image-minimal ovmf').status)
556 self.remove_config(config)
557
558 with runqemu('core-image-minimal', ssh=False,
559 runqemuparams='ovmf', image_fstype='wic') as qemu:
560 cmd = "grep vda. /proc/partitions |wc -l"
561 status, output = qemu.run_serial(cmd)
562 self.assertEqual(1, status, 'Failed to run command "%s": %s' % (cmd, output))
563 self.assertEqual(output, '3')