diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-08-16 15:56:56 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-25 23:03:47 +0100 |
commit | 06b2c75c7e56d520a57302e4cc9a622137a4ca74 (patch) | |
tree | bd4287263f3c31c4741dc5bf99a32bed05cf3e19 /scripts/oe-build-perf-test | |
parent | 28333b3a2d17a9d623751a6c4daa92beadb8fdb6 (diff) | |
download | poky-06b2c75c7e56d520a57302e4cc9a622137a4ca74.tar.gz |
oe-build-perf-test: tag results committed to Git
Create a Git tag when committing results to a Git repository. This patch
also implements --commit-results-tag command line option for controlling
the tag name. The value
is a format string where the following fields may be used:
- {git_branch} - target branch being tested
- {git_commit} - target commit being tested
- {tester_host} - hostname of the tester machine
Tagging can be disabled by giving an empty string to
--commit-results-tag. The option has no effect if --commit-results is
not defined.
(From OE-Core rev: 60059ff5b81d6ba9ba344161d51d1290559ac2df)
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/oe-build-perf-test')
-rwxr-xr-x | scripts/oe-build-perf-test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test index 437611c856..1ed5bdbf5e 100755 --- a/scripts/oe-build-perf-test +++ b/scripts/oe-build-perf-test | |||
@@ -139,6 +139,9 @@ def parse_args(argv): | |||
139 | parser.add_argument('--commit-results-branch', metavar='BRANCH', | 139 | parser.add_argument('--commit-results-branch', metavar='BRANCH', |
140 | default="{git_branch}", | 140 | default="{git_branch}", |
141 | help="Commit results to branch BRANCH.") | 141 | help="Commit results to branch BRANCH.") |
142 | parser.add_argument('--commit-results-tag', metavar='TAG', | ||
143 | default="{git_branch}/{git_commit}", | ||
144 | help="Tag results commit with TAG.") | ||
142 | 145 | ||
143 | return parser.parse_args(argv) | 146 | return parser.parse_args(argv) |
144 | 147 | ||
@@ -193,7 +196,8 @@ def main(argv=None): | |||
193 | result.update_globalres_file(args.globalres_file) | 196 | result.update_globalres_file(args.globalres_file) |
194 | if args.commit_results: | 197 | if args.commit_results: |
195 | result.git_commit_results(args.commit_results, | 198 | result.git_commit_results(args.commit_results, |
196 | args.commit_results_branch) | 199 | args.commit_results_branch, |
200 | args.commit_results_tag) | ||
197 | return 0 | 201 | return 0 |
198 | 202 | ||
199 | return 1 | 203 | return 1 |