aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-11-14 12:54:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:59 +0000
commit7c23ddfeb4a46ee519cafdbd83ad1880621fba4d (patch)
tree6322aaa8f8131864447164a9b9e41c03a8f57610 /meta/lib/oeqa/buildperf
parentb7164d30fb125ff0c85a2ea508b0f1801aa57f66 (diff)
downloadopenembedded-core-contrib-7c23ddfeb4a46ee519cafdbd83ad1880621fba4d.tar.gz
oeqa.buildperf: extend xml report format with test description
Add test description as an attribute to the <testcase> element. [YOCTO #10590] Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/buildperf')
-rw-r--r--meta/lib/oeqa/buildperf/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index efbe20c500a..b82476c110c 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -273,6 +273,7 @@ class BuildPerfTestResult(unittest.TextTestResult):
testcase = ET.SubElement(suite, 'testcase')
testcase.set('classname', test.__module__ + '.' + test.__class__.__name__)
testcase.set('name', test.name)
+ testcase.set('description', test.shortDescription())
testcase.set('timestamp', test.start_time.isoformat())
testcase.set('time', str(test.elapsed_time.total_seconds()))
if status in ('ERROR', 'FAILURE', 'EXP_FAILURE'):
@@ -407,6 +408,9 @@ class BuildPerfTestCase(unittest.TestCase):
def cmd_log_file(self):
return os.path.join(self.out_dir, 'commands.log')
+ def shortDescription(self):
+ return super(BuildPerfTestCase, self).shortDescription() or ""
+
def setUp(self):
"""Set-up fixture for each test"""
if self.build_target: