diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-08-12 14:11:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-25 23:00:00 +0100 |
commit | b54b63395ec632748a57a702812c8a9a07af35ab (patch) | |
tree | aefb1a617771890a138604722a7a85f0dc557e84 /meta/lib/oeqa | |
parent | b6f635513ca971402e7a970acc2168fb5d4a9476 (diff) | |
download | openembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.tar.gz openembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.tar.bz2 openembedded-core-b54b63395ec632748a57a702812c8a9a07af35ab.zip |
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 <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 5 |
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): 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: |