summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Lothoré <alexis.lothore@bootlin.com>2024-02-20 14:33:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-21 22:20:10 +0000
commit0f216dd0fa5b88c7746c2d85f7db24a69f199434 (patch)
tree3934e97b62d9c7ece76fc53d9e048a44767560e9
parent6f4ca08aa3b907af53a160c5904dbef5979b5759 (diff)
downloadpoky-0f216dd0fa5b88c7746c2d85f7db24a69f199434.tar.gz
testimage: log exception when failing to retrieve artifacts
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 (From OE-Core rev: 12873e5b1620414a76e4a0e87cc2c806a0513cfe) Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/testimage.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass
index 281de4784f..d076102f96 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -208,8 +208,8 @@ def retrieve_test_artifacts(target, artifacts_list, target_dir):
208 dest_dir = os.path.join(local_artifacts_dir, os.path.dirname(artifact_path[1:])) 208 dest_dir = os.path.join(local_artifacts_dir, os.path.dirname(artifact_path[1:]))
209 os.makedirs(dest_dir, exist_ok=True) 209 os.makedirs(dest_dir, exist_ok=True)
210 target.copyFrom(artifact_path, dest_dir) 210 target.copyFrom(artifact_path, dest_dir)
211 except: 211 except Exception as e:
212 bb.warn(f"Can not retrieve {artifact_path} from test target") 212 bb.warn(f"Can not retrieve {artifact_path} from test target: {e}")
213 213
214def testimage_main(d): 214def testimage_main(d):
215 import os 215 import os