summaryrefslogtreecommitdiff
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-16 15:56:56 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 23:00:03 +0100
commit60059ff5b81d6ba9ba344161d51d1290559ac2df (patch)
tree49e6ff4663472cf3f8c6bcaad822c1eb358bbfce /scripts/oe-build-perf-test
parent759357a3bdbe75a3409b9e58979ab8b45d9b6ae8 (diff)
downloadopenembedded-core-60059ff5b81d6ba9ba344161d51d1290559ac2df.tar.gz
openembedded-core-60059ff5b81d6ba9ba344161d51d1290559ac2df.tar.bz2
openembedded-core-60059ff5b81d6ba9ba344161d51d1290559ac2df.zip
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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/oe-build-perf-test')
-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 437611c856..1ed5bdbf5e 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -139,6 +139,9 @@ def parse_args(argv):
parser.add_argument('--commit-results-branch', metavar='BRANCH',
default="{git_branch}",
help="Commit results to branch BRANCH.")
+ parser.add_argument('--commit-results-tag', metavar='TAG',
+ default="{git_branch}/{git_commit}",
+ help="Tag results commit with TAG.")
return parser.parse_args(argv)
@@ -193,7 +196,8 @@ def main(argv=None):
result.update_globalres_file(args.globalres_file)
if args.commit_results:
result.git_commit_results(args.commit_results,
- args.commit_results_branch)
+ args.commit_results_branch,
+ args.commit_results_tag)
return 0
return 1