summaryrefslogtreecommitdiffstats
path: root/meta
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:03:47 +0100
commit96e8337830149f43abfe34a41269dbf10cd055a2 (patch)
tree661af5c0d180c243e335e61e96bcc888a8a5c4ca /meta
parent8335422b001713a7137e9cfdc0870138b120da8e (diff)
downloadpoky-96e8337830149f43abfe34a41269dbf10cd055a2.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/buildperf/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 8f7d88cd42..119e6edf18 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -193,6 +193,11 @@ class BuildPerfTestResult(unittest.TextTestResult):
193 repo = GitRepo(repo_path, is_topdir=True) 193 repo = GitRepo(repo_path, is_topdir=True)
194 if not branch: 194 if not branch:
195 branch = self.git_branch 195 branch = self.git_branch
196 else:
197 # Replace keywords
198 branch = branch.format(git_branch=self.git_branch,
199 tester_host=self.hostname)
200
196 log.info("Committing test results into %s %s", repo_path, branch) 201 log.info("Committing test results into %s %s", repo_path, branch)
197 tmp_index = os.path.join(repo_path, '.git', 'index.oe-build-perf') 202 tmp_index = os.path.join(repo_path, '.git', 'index.oe-build-perf')
198 try: 203 try: