diff options
| author | Konrad Weihmann <kweihmann@outlook.com> | 2024-09-21 10:04:44 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-09-27 05:57:35 -0700 |
| commit | 504f20398641e53f7193bbfefb1eff5f2d459fe6 (patch) | |
| tree | 4b101bc1aede05deccd7836eb465d36e5eb2cbd0 /meta/classes/testexport.bbclass | |
| parent | 38ea1cb055014f7e6ea4369bace28fdc4e506b23 (diff) | |
| download | poky-504f20398641e53f7193bbfefb1eff5f2d459fe6.tar.gz | |
testexport: fallback for empty IMAGE_LINK_NAME
if IMAGE_LINK_NAME is set empty to disable the symlinking
for image artifacts in deploy, testexport fails, as the path assembly
is incorrect.
In that case fallback to IMAGE_NAME
(From OE-Core rev: 0c1d098e6dd08fa3a5aafca656457ac6badcef89)
(From OE-Core rev: a821a5810ae6edba5882a43e3c60c142f2acda9d)
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/testexport.bbclass')
| -rw-r--r-- | meta/classes/testexport.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 1b0fb44a4a..deb68ec6ce 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
| @@ -50,7 +50,7 @@ def testexport_main(d): | |||
| 50 | from oeqa.runtime.context import OERuntimeTestContextExecutor | 50 | from oeqa.runtime.context import OERuntimeTestContextExecutor |
| 51 | 51 | ||
| 52 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), | 52 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), |
| 53 | d.getVar('IMAGE_LINK_NAME'))) | 53 | d.getVar('IMAGE_LINK_NAME') or d.getVar('IMAGE_NAME'))) |
| 54 | 54 | ||
| 55 | tdname = "%s.testdata.json" % image_name | 55 | tdname = "%s.testdata.json" % image_name |
| 56 | td = json.load(open(tdname, "r")) | 56 | td = json.load(open(tdname, "r")) |
