mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8335422b00
commit
96e8337830
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user