mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 15:32:27 +02:00
oe-build-perf-test: enable xml reporting
Add --xml command line option to oe-build-perf-test script for producing a test report in JUnit XML format instead of JSON. [YOCTO #10590] (From OE-Core rev: 21ae1c491b93675254b7733640662b566ed76f98) 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>
This commit is contained in:
committed by
Richard Purdie
parent
96fcb0f7b4
commit
07c245792e
@@ -131,6 +131,8 @@ def parse_args(argv):
|
||||
parser.add_argument('-o', '--out-dir', default='results-{date}',
|
||||
type=os.path.abspath,
|
||||
help="Output directory for test results")
|
||||
parser.add_argument('-x', '--xml', action='store_true',
|
||||
help='Enable JUnit xml output')
|
||||
parser.add_argument('--log-file',
|
||||
default='{out_dir}/oe-build-perf-test.log',
|
||||
help="Log file of this script")
|
||||
@@ -194,6 +196,10 @@ def main(argv=None):
|
||||
# Restore logger output to stderr
|
||||
log.handlers[0].setLevel(log.level)
|
||||
|
||||
if args.xml:
|
||||
result.write_results_xml()
|
||||
else:
|
||||
result.write_results_json()
|
||||
if args.globalres_file:
|
||||
result.update_globalres_file(args.globalres_file)
|
||||
if args.commit_results:
|
||||
|
||||
Reference in New Issue
Block a user