Skip to contentSkip to conversation

selftest: systemd_boot.py: respect IMAGE_LINK_NAME

PATCH Martin Jansa 1 participant 1 message Mar 28, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Gentle ping.

I've already asked RP about this one on #yocto (as other changes related to this were already merged to master last week).

Pinging on e-mail as well just in case abelloni wants to take it for spin before RP does.

Cheers,

Quoted 61 lines · Martin Jansa via lists.yoctoproject.org

* use IMAGE_LINK_NAME instead of hardcoding
core-image-minimal-genericx86-64.wic assumption

[YOCTO #12937]

---
 .../lib/oeqa/selftest/cases/systemd_boot.py           | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py +1 -1
index 57599e1..6ce9a3b 100644
@@ -2,7 +2,7 @@ import os
 
 from oeqa.selftest.case import OESelftestTestCase
 from oeqa.core.decorator.depends import OETestDepends
-from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu
+from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars,

runqemu

class Systemdboot(OESelftestTestCase):

meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py +3 -2
@@ -21,8 +21,9 @@ class Systemdboot(OESelftestTestCase):
         features += 'MACHINE = "genericx86-64"'
         self.append_config(features)
 
-        deploydir = get_bb_var('DEPLOY_DIR_IMAGE', "core-image-minimal")
-        systemdbootfile = os.path.join(deploydir, 'systemd-bootx64.efi')
+        image = 'core-image-minimal'
+        bb_vars = get_bb_vars(['DEPLOY_DIR_IMAGE', 'IMAGE_LINK_NAME'],
 image)
+        systemdbootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'],
 'systemd-bootx64.efi')
 

# Ensure we're actually testing that this gets built and not that # it was around from an earlier build

meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py +0 -0
@@ -50,8 +51,8 @@ class Systemdboot(OESelftestTestCase):
         AutomatedBy:  Jose Perez Carranza <jose.perez.carranza at

linux-intel.com>

         """

- systemdbootimage = os.path.join(deploydir,
'core-image-minimal-genericx86-64.wic')

meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py +1 -1
-        imagebootfile = os.path.join(deploydir, 'bootx64.efi')
+        systemdbootimage = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'],

'%s.wic' % bb_vars['IMAGE_LINK_NAME'])
+ imagebootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'],
'bootx64.efi')

# Clean environment before start the test if os.path.isfile(imagebootfile):
--
2.40.0