mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
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: bd723b611e937b8532ebcd485db61a3eae46091d) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0c1d098e6dd08fa3a5aafca656457ac6badcef89) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
parent
89b7eef375
commit
2b073f0eaa
|
|
@ -50,7 +50,7 @@ def testexport_main(d):
|
|||
from oeqa.runtime.context import OERuntimeTestContextExecutor
|
||||
|
||||
image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'),
|
||||
d.getVar('IMAGE_LINK_NAME')))
|
||||
d.getVar('IMAGE_LINK_NAME') or d.getVar('IMAGE_NAME')))
|
||||
|
||||
tdname = "%s.testdata.json" % image_name
|
||||
td = json.load(open(tdname, "r"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user