summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-10-27 17:52:37 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:21 +0000
commit07c245792e4b3306c29a017dbbed63200190bea5 (patch)
tree0277a8072b4aa2237b600159f9ee9c1453226145 /scripts
parent96fcb0f7b4a8a59a1620e48a65a9cda8cf03d71f (diff)
downloadpoky-07c245792e4b3306c29a017dbbed63200190bea5.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-build-perf-test6
1 files changed, 6 insertions, 0 deletions
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):
131 parser.add_argument('-o', '--out-dir', default='results-{date}', 131 parser.add_argument('-o', '--out-dir', default='results-{date}',
132 type=os.path.abspath, 132 type=os.path.abspath,
133 help="Output directory for test results") 133 help="Output directory for test results")
134 parser.add_argument('-x', '--xml', action='store_true',
135 help='Enable JUnit xml output')
134 parser.add_argument('--log-file', 136 parser.add_argument('--log-file',
135 default='{out_dir}/oe-build-perf-test.log', 137 default='{out_dir}/oe-build-perf-test.log',
136 help="Log file of this script") 138 help="Log file of this script")
@@ -194,6 +196,10 @@ def main(argv=None):
194 # Restore logger output to stderr 196 # Restore logger output to stderr
195 log.handlers[0].setLevel(log.level) 197 log.handlers[0].setLevel(log.level)
196 198
199 if args.xml:
200 result.write_results_xml()
201 else:
202 result.write_results_json()
197 if args.globalres_file: 203 if args.globalres_file:
198 result.update_globalres_file(args.globalres_file) 204 result.update_globalres_file(args.globalres_file)
199 if args.commit_results: 205 if args.commit_results: