From b54b63395ec632748a57a702812c8a9a07af35ab Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 12 Aug 2016 14:11:16 +0300 Subject: 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. Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- meta/lib/oeqa/buildperf/base.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/lib/oeqa/buildperf/base.py') 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): 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: -- cgit 1.2.3-korg