diff options
| author | Konrad Weihmann <kweihmann@outlook.com> | 2024-09-21 10:04:43 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-09-27 05:57:35 -0700 |
| commit | 38ea1cb055014f7e6ea4369bace28fdc4e506b23 (patch) | |
| tree | f4ee93b46a506e7529f243b94694067e54be19f6 /meta/classes/testimage.bbclass | |
| parent | 6ee7342411035befa676122a0e874acbd85f1d38 (diff) | |
| download | poky-38ea1cb055014f7e6ea4369bace28fdc4e506b23.tar.gz | |
testimage: fallback for empty IMAGE_LINK_NAME
if IMAGE_LINK_NAME is set empty to disable the symlinking
for image artifacts in deploy, testimage fails, as the path assembly
is incorrect.
In that case fallback to IMAGE_NAME
(From OE-Core rev: c7a4e7e294992acc589c62adcaf6cd32659f2f9b)
(From OE-Core rev: 5b4c7a39f7a99d5c98eab3aaf693f4d3000c7ac1)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
| -rw-r--r-- | meta/classes/testimage.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 0241f29dfb..a91cdb9a1f 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
| @@ -98,7 +98,7 @@ TESTIMAGELOCK:qemuall = "" | |||
| 98 | 98 | ||
| 99 | TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/" | 99 | TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/" |
| 100 | 100 | ||
| 101 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" | 101 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR IMAGE_LINK_NAME" |
| 102 | 102 | ||
| 103 | testimage_dump_target () { | 103 | testimage_dump_target () { |
| 104 | } | 104 | } |
| @@ -209,7 +209,7 @@ def testimage_main(d): | |||
| 209 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) | 209 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) |
| 210 | 210 | ||
| 211 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), | 211 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), |
| 212 | d.getVar('IMAGE_LINK_NAME'))) | 212 | d.getVar('IMAGE_LINK_NAME') or d.getVar('IMAGE_NAME'))) |
| 213 | 213 | ||
| 214 | tdname = "%s.testdata.json" % image_name | 214 | tdname = "%s.testdata.json" % image_name |
| 215 | try: | 215 | try: |
