summaryrefslogtreecommitdiff
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:00:00 +0100
commitb54b63395ec632748a57a702812c8a9a07af35ab (patch)
treeaefb1a617771890a138604722a7a85f0dc557e84 /scripts
parentb6f635513ca971402e7a970acc2168fb5d4a9476 (diff)
downloadopenembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.tar.gz
openembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.tar.bz2
openembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.zip
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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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):
parser.add_argument('--commit-results', metavar='GIT_DIR',
type=os.path.abspath,
help="Commit result data to a (local) git repository")
+ parser.add_argument('--commit-results-branch', metavar='BRANCH',
+ default="{git_branch}",
+ help="Commit results to branch BRANCH.")
return parser.parse_args(argv)
@@ -162,7 +165,8 @@ def main(argv=None):
if args.globalres_file:
result.update_globalres_file(args.globalres_file)
if args.commit_results:
- result.git_commit_results(args.commit_results)
+ result.git_commit_results(args.commit_results,
+ args.commit_results_branch)
return 0
return 1