diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-11-14 12:54:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:21 +0000 |
commit | fa4742f585e79d82ef29aa6ebc0536dd44307695 (patch) | |
tree | 79aa16cadad95aae20aab83dd12e75757ed6a5e2 /meta | |
parent | 4a26ceaecfcb17cbabf4cf9e1c995f0eafc2e41c (diff) | |
download | poky-fa4742f585e79d82ef29aa6ebc0536dd44307695.tar.gz |
oeqa.buildperf: extend xml report format with test description
Add test description as an attribute to the <testcase> element.
[YOCTO #10590]
(From OE-Core rev: 7c23ddfeb4a46ee519cafdbd83ad1880621fba4d)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index efbe20c500..b82476c110 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py | |||
@@ -273,6 +273,7 @@ class BuildPerfTestResult(unittest.TextTestResult): | |||
273 | testcase = ET.SubElement(suite, 'testcase') | 273 | testcase = ET.SubElement(suite, 'testcase') |
274 | testcase.set('classname', test.__module__ + '.' + test.__class__.__name__) | 274 | testcase.set('classname', test.__module__ + '.' + test.__class__.__name__) |
275 | testcase.set('name', test.name) | 275 | testcase.set('name', test.name) |
276 | testcase.set('description', test.shortDescription()) | ||
276 | testcase.set('timestamp', test.start_time.isoformat()) | 277 | testcase.set('timestamp', test.start_time.isoformat()) |
277 | testcase.set('time', str(test.elapsed_time.total_seconds())) | 278 | testcase.set('time', str(test.elapsed_time.total_seconds())) |
278 | if status in ('ERROR', 'FAILURE', 'EXP_FAILURE'): | 279 | if status in ('ERROR', 'FAILURE', 'EXP_FAILURE'): |
@@ -407,6 +408,9 @@ class BuildPerfTestCase(unittest.TestCase): | |||
407 | def cmd_log_file(self): | 408 | def cmd_log_file(self): |
408 | return os.path.join(self.out_dir, 'commands.log') | 409 | return os.path.join(self.out_dir, 'commands.log') |
409 | 410 | ||
411 | def shortDescription(self): | ||
412 | return super(BuildPerfTestCase, self).shortDescription() or "" | ||
413 | |||
410 | def setUp(self): | 414 | def setUp(self): |
411 | """Set-up fixture for each test""" | 415 | """Set-up fixture for each test""" |
412 | if self.build_target: | 416 | if self.build_target: |