diff options
author | Konrad Weihmann <kweihmann@outlook.com> | 2024-07-03 04:47:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-08 09:17:09 +0100 |
commit | 2de2968b8c142589a6fad47b9a82771ab7e5c0ab (patch) | |
tree | fa42ba5eaf8e2ed23cb92a86642ae3df10944e2b /meta/classes-recipe/testexport.bbclass | |
parent | 3bbb1ad1caa3be31a58fb1b8d0e4037304395fa4 (diff) | |
download | poky-2de2968b8c142589a6fad47b9a82771ab7e5c0ab.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)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/testexport.bbclass')
-rw-r--r-- | meta/classes-recipe/testexport.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/testexport.bbclass b/meta/classes-recipe/testexport.bbclass index 572f5d9e76..57f7f15885 100644 --- a/meta/classes-recipe/testexport.bbclass +++ b/meta/classes-recipe/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")) |