summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/core/runner.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index 00b7d0bb12..d50690ab37 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -195,6 +195,20 @@ class OETestResult(_TestResult):
195 report['log'] = log 195 report['log'] = log
196 if duration: 196 if duration:
197 report['duration'] = duration 197 report['duration'] = duration
198
199 alltags = []
200 # pull tags from the case class
201 if hasattr(case, "__oeqa_testtags"):
202 alltags.extend(getattr(case, "__oeqa_testtags"))
203 # pull tags from the method itself
204 test_name = case._testMethodName
205 if hasattr(case, test_name):
206 method = getattr(case, test_name)
207 if hasattr(method, "__oeqa_testtags"):
208 alltags.extend(getattr(method, "__oeqa_testtags"))
209 if alltags:
210 report['oetags'] = alltags
211
198 if dump_streams and case.id() in self.logged_output: 212 if dump_streams and case.id() in self.logged_output:
199 (stdout, stderr) = self.logged_output[case.id()] 213 (stdout, stderr) = self.logged_output[case.id()]
200 report['stdout'] = stdout 214 report['stdout'] = stdout