summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py')
-rw-r--r--meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py b/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
index 57599e19aa..6fc6925f69 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
@@ -2,7 +2,7 @@ import os
2 2
3from oeqa.selftest.case import OESelftestTestCase 3from oeqa.selftest.case import OESelftestTestCase
4from oeqa.core.decorator.depends import OETestDepends 4from oeqa.core.decorator.depends import OETestDepends
5from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu 5from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu
6 6
7class Systemdboot(OESelftestTestCase): 7class Systemdboot(OESelftestTestCase):
8 8
@@ -18,11 +18,13 @@ class Systemdboot(OESelftestTestCase):
18 18
19 # Set EFI_PROVIDER = "systemdboot" and MACHINE = "genericx86-64" in conf/local.conf 19 # Set EFI_PROVIDER = "systemdboot" and MACHINE = "genericx86-64" in conf/local.conf
20 features = 'EFI_PROVIDER = "systemd-boot"\n' 20 features = 'EFI_PROVIDER = "systemd-boot"\n'
21 features += 'MACHINE = "genericx86-64"' 21 features += 'MACHINE = "genericx86-64"\n'
22 features += 'COMPATIBLE_MACHINE:pn-ssh-pregen-hostkeys:genericx86-64 = "genericx86-64"\n'
22 self.append_config(features) 23 self.append_config(features)
23 24
24 deploydir = get_bb_var('DEPLOY_DIR_IMAGE', "core-image-minimal") 25 image = 'core-image-minimal'
25 systemdbootfile = os.path.join(deploydir, 'systemd-bootx64.efi') 26 bb_vars = get_bb_vars(['DEPLOY_DIR_IMAGE', 'IMAGE_LINK_NAME'], image)
27 systemdbootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], 'systemd-bootx64.efi')
26 28
27 # Ensure we're actually testing that this gets built and not that 29 # Ensure we're actually testing that this gets built and not that
28 # it was around from an earlier build 30 # it was around from an earlier build
@@ -50,8 +52,8 @@ class Systemdboot(OESelftestTestCase):
50 AutomatedBy: Jose Perez Carranza <jose.perez.carranza at linux-intel.com> 52 AutomatedBy: Jose Perez Carranza <jose.perez.carranza at linux-intel.com>
51 """ 53 """
52 54
53 systemdbootimage = os.path.join(deploydir, 'core-image-minimal-genericx86-64.wic') 55 systemdbootimage = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], '%s.wic' % bb_vars['IMAGE_LINK_NAME'])
54 imagebootfile = os.path.join(deploydir, 'bootx64.efi') 56 imagebootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], 'bootx64.efi')
55 57
56 # Clean environment before start the test 58 # Clean environment before start the test
57 if os.path.isfile(imagebootfile): 59 if os.path.isfile(imagebootfile):