diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-03-13 13:15:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-22 13:53:29 +0000 |
commit | e1334b120ebfa74cf95eeb523c5b8ff04a5d8dfe (patch) | |
tree | d431aaf555886726cf9bd72394efc4ae44204274 /meta/lib/oeqa/selftest/cases/wic.py | |
parent | af9f67606ccb0cf0ca6ef35af1616d8e42776b85 (diff) | |
download | poky-e1334b120ebfa74cf95eeb523c5b8ff04a5d8dfe.tar.gz |
selftest: wic: respect IMAGE_LINK_NAME also in test_rawcopy_plugin_qemu
* this one is more tricky, because the test_rawcopy_plugin.wks.in file
is used while building core-image-minimal-mtdutils, but the image filename
inside wks.in is from core-image-minimal, so we cannot just let bitbake
expand IMAGE_LINK_NAME, use separate variable set in the same config fragment
IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL
[YOCTO #12937]
(From OE-Core rev: 8864ee825fdc52fe7a8cf93876c81c639fba66f4)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/wic.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 7c31848732..b26b649c3a 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -1034,9 +1034,13 @@ class Wic2(WicTestCase): | |||
1034 | config = 'IMAGE_FSTYPES = "ext4"\n' | 1034 | config = 'IMAGE_FSTYPES = "ext4"\n' |
1035 | self.append_config(config) | 1035 | self.append_config(config) |
1036 | bitbake('core-image-minimal') | 1036 | bitbake('core-image-minimal') |
1037 | image_link_name = get_bb_var('IMAGE_LINK_NAME', 'core-image-minimal') | ||
1037 | self.remove_config(config) | 1038 | self.remove_config(config) |
1038 | 1039 | ||
1039 | config = 'IMAGE_FSTYPES = "wic"\nWKS_FILE = "test_rawcopy_plugin.wks.in"\n' | 1040 | config = 'IMAGE_FSTYPES = "wic"\n' \ |
1041 | 'IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL = "%s"\n'\ | ||
1042 | 'WKS_FILE = "test_rawcopy_plugin.wks.in"\n'\ | ||
1043 | % image_link_name | ||
1040 | self.append_config(config) | 1044 | self.append_config(config) |
1041 | bitbake('core-image-minimal-mtdutils') | 1045 | bitbake('core-image-minimal-mtdutils') |
1042 | self.remove_config(config) | 1046 | self.remove_config(config) |