repo = GitRepo(repo_path, is_topdir=True)
if not branch:
branch = self.git_branch
+ else:
+ # Replace keywords
+ branch = branch.format(git_branch=self.git_branch,
+ tester_host=self.hostname)
+
log.info("Committing test results into %s %s", repo_path, branch)
tmp_index = os.path.join(repo_path, '.git', 'index.oe-build-perf')
try:
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)
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