summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yocto-bsp/lib')
-rw-r--r--meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py8
1 files changed, 5 insertions, 3 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 b3db226d7e..57599e19aa 100644
--- a/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
+++ b/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
@@ -30,7 +30,7 @@ class Systemdboot(OESelftestTestCase):
30 runCmd('rm -f %s' % systemdbootfile) 30 runCmd('rm -f %s' % systemdbootfile)
31 31
32 # Build a genericx86-64/efi systemdboot image 32 # Build a genericx86-64/efi systemdboot image
33 bitbake('mtools-native core-image-minimal') 33 bitbake('mtools-native core-image-minimal wic-tools')
34 34
35 found = os.path.isfile(systemdbootfile) 35 found = os.path.isfile(systemdbootfile)
36 self.assertTrue(found, 'Systemd-Boot file %s not found' % systemdbootfile) 36 self.assertTrue(found, 'Systemd-Boot file %s not found' % systemdbootfile)
@@ -57,8 +57,10 @@ class Systemdboot(OESelftestTestCase):
57 if os.path.isfile(imagebootfile): 57 if os.path.isfile(imagebootfile):
58 runCmd('rm -f %s' % imagebootfile) 58 runCmd('rm -f %s' % imagebootfile)
59 59
60 runCmd('wic cp %s:1/EFI/BOOT/bootx64.efi %s' % (systemdbootimage, 60 sysroot = get_bb_var('RECIPE_SYSROOT_NATIVE', 'wic-tools')
61 imagebootfile)) 61
62 runCmd('wic cp %s:1/EFI/BOOT/bootx64.efi %s -n %s' % (systemdbootimage,
63 imagebootfile, sysroot))
62 64
63 found = os.path.isfile(imagebootfile) 65 found = os.path.isfile(imagebootfile)
64 self.assertTrue(found, 'bootx64.efi file %s was not copied from image' 66 self.assertTrue(found, 'bootx64.efi file %s was not copied from image'