summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-06 17:10:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-08 11:52:56 +0000
commit55fc115d93931f6d10f460fe64ece3dd8a627389 (patch)
treef0c1a1fa07c4e9f9ec2fd08e320b359ef300b90a /meta/lib/oeqa
parent27badf83ecbf4cd72c74ae21dbc1a6e21f9f1fa9 (diff)
downloadpoky-55fc115d93931f6d10f460fe64ece3dd8a627389.tar.gz
selftest: test wic efi image in qemu
Added test_qemu_efi test case to wic test suite. It uses ovmf qemu extention to test mkefidisk image. (From OE-Core rev: 770b87d903644641da41594193ee61b564dd99e9) 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/lib/oeqa')
-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')