diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/efibootpartition.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/efibootpartition.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/cases/efibootpartition.py b/meta/lib/oeqa/selftest/cases/efibootpartition.py index fa74103dec..fcfcdaf7e4 100644 --- a/meta/lib/oeqa/selftest/cases/efibootpartition.py +++ b/meta/lib/oeqa/selftest/cases/efibootpartition.py | |||
@@ -6,7 +6,7 @@ | |||
6 | # | 6 | # |
7 | 7 | ||
8 | from oeqa.selftest.case import OESelftestTestCase | 8 | from oeqa.selftest.case import OESelftestTestCase |
9 | from oeqa.utils.commands import bitbake, runqemu | 9 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var |
10 | from oeqa.core.decorator.data import skipIfNotMachine | 10 | from oeqa.core.decorator.data import skipIfNotMachine |
11 | import oe.types | 11 | import oe.types |
12 | 12 | ||
@@ -14,17 +14,18 @@ class GenericEFITest(OESelftestTestCase): | |||
14 | """EFI booting test class""" | 14 | """EFI booting test class""" |
15 | @skipIfNotMachine("qemux86-64", "test is qemux86-64 specific currently") | 15 | @skipIfNotMachine("qemux86-64", "test is qemux86-64 specific currently") |
16 | def test_boot_efi(self): | 16 | def test_boot_efi(self): |
17 | cmd = "runqemu nographic serial wic ovmf" | 17 | image = "core-image-minimal" |
18 | runqemu_params = get_bb_var('TEST_RUNQEMUPARAMS', image) or "" | ||
19 | cmd = "runqemu %s nographic serial wic ovmf" % (runqemu_params) | ||
18 | if oe.types.qemu_use_kvm(self.td.get('QEMU_USE_KVM', 0), self.td["TARGET_ARCH"]): | 20 | if oe.types.qemu_use_kvm(self.td.get('QEMU_USE_KVM', 0), self.td["TARGET_ARCH"]): |
19 | cmd += " kvm" | 21 | cmd += " kvm" |
20 | image = "core-image-minimal" | ||
21 | 22 | ||
22 | self.write_config(""" | 23 | self.write_config(""" |
23 | EFI_PROVIDER = "systemd-boot" | 24 | EFI_PROVIDER = "grub-efi" |
24 | IMAGE_FSTYPES:pn-%s:append = " wic" | 25 | IMAGE_FSTYPES:pn-%s:append = " wic" |
25 | MACHINE_FEATURES:append = " efi" | 26 | MACHINE_FEATURES:append = " efi" |
26 | WKS_FILE = "efi-bootdisk.wks.in" | 27 | WKS_FILE = "efi-bootdisk.wks.in" |
27 | IMAGE_INSTALL:append = " grub-efi systemd-boot kernel-image-bzimage" | 28 | IMAGE_INSTALL:append = " grub-efi kernel-image-bzimage" |
28 | """ | 29 | """ |
29 | % (image)) | 30 | % (image)) |
30 | 31 | ||