From 07c245792e4b3306c29a017dbbed63200190bea5 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 27 Oct 2016 17:52:37 +0300 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/oe-build-perf-test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/oe-build-perf-test') diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test index 638e195efb..4ec9f1403e 100755 --- a/scripts/oe-build-perf-test +++ b/scripts/oe-build-perf-test @@ -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: -- cgit v1.2.3-54-g00ecf