]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
testexport: fallback for empty IMAGE_LINK_NAME
authorKonrad Weihmann <kweihmann@outlook.com>
Wed, 3 Jul 2024 04:47:10 +0000 (04:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Jul 2024 08:16:26 +0000 (09:16 +0100)
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

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testexport.bbclass

index 572f5d9e7680f9d830ae43d855b07920960d07e5..57f7f15885e7033ca099b776c1c4f7d36cf0af72 100644 (file)
@@ -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"))