summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-build-perf-test5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 3dab070edc..8d7fdf269e 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -131,6 +131,9 @@ 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('--log-file', type=os.path.abspath,
135 default='{out_dir}/oe-build-perf-test.log',
136 help="Log file of this script")
134 parser.add_argument('--run-tests', nargs='+', metavar='TEST', 137 parser.add_argument('--run-tests', nargs='+', metavar='TEST',
135 help="List of tests to run") 138 help="List of tests to run")
136 parser.add_argument('--commit-results', metavar='GIT_DIR', 139 parser.add_argument('--commit-results', metavar='GIT_DIR',
@@ -152,7 +155,7 @@ def main(argv=None):
152 155
153 # Set-up log file 156 # Set-up log file
154 out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S')) 157 out_dir = args.out_dir.format(date=datetime.now().strftime('%Y%m%d%H%M%S'))
155 setup_file_logging(os.path.join(out_dir, 'output.log')) 158 setup_file_logging(args.log_file.format(out_dir=out_dir))
156 159
157 if args.debug: 160 if args.debug:
158 log.setLevel(logging.DEBUG) 161 log.setLevel(logging.DEBUG)