summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-build-perf-test')
-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: