Message ID | 20240220133312.2714492-1-alexis.lothore@bootlin.com |
---|---|
State | Accepted, archived |
Commit | 12873e5b1620414a76e4a0e87cc2c806a0513cfe |
Headers | show |
Series | testimage: log exception when failing to retrieve artifacts | expand |
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