From: Alexis Lothoré <alexis.loth...@bootlin.com>

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.loth...@bootlin.com>
---
As a more detailed example, such log is visible in [1], while artifacts
have been properly pushed in the corresponding web server in [2]

[1] 
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6099/steps/13/logs/stdio
[2] 
https://autobuilder.yocto.io/pub/non-release/20240218-3/testresults/qemuarm64-ptest/artifacts/usr/lib/valgrind/ptest/
---
 meta/classes-recipe/testimage.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/testimage.bbclass 
b/meta/classes-recipe/testimage.bbclass
index 934272b6b837..bee19674ef4f 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):
             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
-- 
2.43.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#195917): 
https://lists.openembedded.org/g/openembedded-core/message/195917
Mute This Topic: https://lists.openembedded.org/mt/104467041/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to