]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
testimage: log exception when failing to retrieve artifacts
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Tue, 20 Feb 2024 13:33:12 +0000 (14:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Feb 2024 22:18:17 +0000 (22:18 +0000)
Despite managing to retrieve the failed ptests artifacts, testimage seems
to dump some retrieval errors like the following one:

WARNING: core-image-ptest-valgrind-1.0-r0 do_testimage: Can not retrieve
/usr/lib/valgrind/ptest from test target

Log the corresponding exception to help analyzing such issue

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testimage.bbclass

index 281de4784f319d7de3f2f20405f1e59181f165c2..d076102f9691067a2f1286c3548f8173307179b6 100644 (file)
@@ -208,8 +208,8 @@ def retrieve_test_artifacts(target, artifacts_list, target_dir):
             dest_dir = os.path.join(local_artifacts_dir, os.path.dirname(artifact_path[1:]))
             os.makedirs(dest_dir, exist_ok=True)
             target.copyFrom(artifact_path, dest_dir)
-        except:
-            bb.warn(f"Can not retrieve {artifact_path} from test target")
+        except Exception as e:
+            bb.warn(f"Can not retrieve {artifact_path} from test target: {e}")
 
 def testimage_main(d):
     import os