Browse Source

oe-build-perf-test: add {git_commit_count} keyword for --commit-results-tag

Makes it possible to create easily sortable tags. Also, the default tag
format is updated to use the new keyword.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Markus Lehtonen 7 years ago
parent
commit
e3161654d7
2 changed files with 2 additions and 1 deletions
  1. 1 0
      meta/lib/oeqa/buildperf/base.py
  2. 1 1
      scripts/oe-build-perf-test

+ 1 - 0
meta/lib/oeqa/buildperf/base.py

@@ -233,6 +233,7 @@ class BuildPerfTestResult(unittest.TextTestResult):
                 # Find tags matching the pattern
                 tag_keywords = dict(git_branch=self.git_branch,
                                     git_commit=self.git_commit,
+                                    git_commit_count=self.git_commit_count,
                                     tester_host=self.hostname,
                                     tag_num='[0-9]{1,5}')
                 tag_re = re.compile(tag.format(**tag_keywords) + '$')

+ 1 - 1
scripts/oe-build-perf-test

@@ -140,7 +140,7 @@ def parse_args(argv):
                         default="{git_branch}",
                         help="Commit results to branch BRANCH.")
     parser.add_argument('--commit-results-tag', metavar='TAG',
-                        default="{git_branch}/{git_commit}/{tag_num}",
+                        default="{git_branch}/{git_commit_count}-g{git_commit}/{tag_num}",
                         help="Tag results commit with TAG.")
 
     return parser.parse_args(argv)