From e55f48089b3d6883a08d0ac2e963cc01b5cd555b Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 29 Jun 2018 15:51:27 +0100 Subject: [PATCH] fw/output: expose metadata Expose result.metadata as a property of the output. --- wa/framework/output.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wa/framework/output.py b/wa/framework/output.py index 59ceb642..3176fa49 100644 --- a/wa/framework/output.py +++ b/wa/framework/output.py @@ -81,6 +81,12 @@ class Output(object): return [] return self.result.events + @property + def metadata(self): + if self.result is None: + return {} + return self.result.metadata + def __init__(self, path): self.basepath = path self.result = None