]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-selftest: fitimage: Test for FIT_DESC
authorPaul Eggleton <paul.eggleton@microsoft.com>
Thu, 17 Dec 2020 02:51:41 +0000 (18:51 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Dec 2020 00:03:01 +0000 (00:03 +0000)
Add verification of FIT_DESC to the existing test for kernel-fitimage.

Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/fitimage.py

index 2c3803d5be5675f2f3ee2c2d4cdaa5688fccd549..2a02c60251c4bb8ef5494b07c7bde74ac446abcf 100644 (file)
@@ -35,6 +35,7 @@ UBOOT_RD_LOADADDRESS = "0x88000000"
 UBOOT_RD_ENTRYPOINT = "0x88000000"
 UBOOT_LOADADDRESS = "0x80080000"
 UBOOT_ENTRYPOINT = "0x80080000"
+FIT_DESC = "A model description"
 """
         self.write_config(config)
 
@@ -59,7 +60,9 @@ UBOOT_ENTRYPOINT = "0x80080000"
         # The order of fields in the below array is important. Not all the
         # fields are tested, only the key fields that wont vary between
         # different architectures.
-        its_field_check = ['type = "kernel";',
+        its_field_check = [
+            'description = "A model description";',
+            'type = "kernel";',
             'load = <0x80080000>;',
             'entry = <0x80080000>;',
             'type = "ramdisk";',