summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-12 14:11:16 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 23:03:47 +0100
commit96e8337830149f43abfe34a41269dbf10cd055a2 (patch)
tree661af5c0d180c243e335e61e96bcc888a8a5c4ca /scripts
parent8335422b001713a7137e9cfdc0870138b120da8e (diff)
downloadpoky-96e8337830149f43abfe34a41269dbf10cd055a2.tar.gz
oe-build-perf-test: implement --commit-results-branch
A new command line option for defining the branch where results are commited. The value is actually a format string accepting two field names: - {git_branch} expands to the name of the target branch being tested - {tester_host} expands to the hostname of the tester machine The option has no effect if --commit-results is not used. (From OE-Core rev: b54b63395ec632748a57a702812c8a9a07af35ab) 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, 5 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index d6ea5ce685..390e4c9519 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -112,6 +112,9 @@ def parse_args(argv):
112 parser.add_argument('--commit-results', metavar='GIT_DIR', 112 parser.add_argument('--commit-results', metavar='GIT_DIR',
113 type=os.path.abspath, 113 type=os.path.abspath,
114 help="Commit result data to a (local) git repository") 114 help="Commit result data to a (local) git repository")
115 parser.add_argument('--commit-results-branch', metavar='BRANCH',
116 default="{git_branch}",
117 help="Commit results to branch BRANCH.")
115 118
116 return parser.parse_args(argv) 119 return parser.parse_args(argv)
117 120
@@ -162,7 +165,8 @@ def main(argv=None):
162 if args.globalres_file: 165 if args.globalres_file:
163 result.update_globalres_file(args.globalres_file) 166 result.update_globalres_file(args.globalres_file)
164 if args.commit_results: 167 if args.commit_results:
165 result.git_commit_results(args.commit_results) 168 result.git_commit_results(args.commit_results,
169 args.commit_results_branch)
166 return 0 170 return 0
167 171
168 return 1 172 return 1