mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 08:48:45 +01:00
If Unified Kernel Image was enabled via IMAGE_CLASSES, then target should also boot the same uki at runtime. (From OE-Core rev: 2ae651c869a19fd24b5a915451c1f99e1d7b32f0) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
687 B
Python
17 lines
687 B
Python
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.data import skipIfNotInDataVar
|
|
|
|
class UkiTest(OERuntimeTestCase):
|
|
|
|
@skipIfNotInDataVar('IMAGE_CLASSES', 'uki', 'Test case uki is for images which use uki.bbclass')
|
|
def test_uki(self):
|
|
uki_filename = self.td.get('UKI_FILENAME')
|
|
status, output = self.target.run('ls /boot/EFI/Linux/%s' % uki_filename)
|
|
self.assertEqual(status, 0, output)
|
|
|
|
status, output = self.target.run('echo $( cat /sys/firmware/efi/efivars/LoaderEntrySelected-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f ) | grep %s' % uki_filename)
|
|
self.assertEqual(status, 0, output)
|