If Unified Kernel Image was enabled via IMAGE_CLASSES, then target should also boot the same uki at runtime.
Signed-off-by: Mikko Rapeli <mikko.rap...@linaro.org> --- meta/lib/oeqa/runtime/cases/uki.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/uki.py diff --git a/meta/lib/oeqa/runtime/cases/uki.py b/meta/lib/oeqa/runtime/cases/uki.py new file mode 100644 index 0000000000..77bc5b9791 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/uki.py @@ -0,0 +1,16 @@ +# 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) -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206954): https://lists.openembedded.org/g/openembedded-core/message/206954 Mute This Topic: https://lists.openembedded.org/mt/109514162/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-