]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-build-perf-report: allow slashes in {branch} field in tag names
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 4 May 2017 11:49:58 +0000 (14:49 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Nov 2017 22:39:19 +0000 (22:39 +0000)
The target branch name might contain slashes.

(From OE-Core rev: 3ddde7d5bcffdd855dae0da6ba5feec752cbacec)

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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/oe-build-perf-report

index 876e3b1a76f42055de51cdf0bfcc8632c8ef150e..d460caae189021e7be84bdcfc12d93975a8b2351 100755 (executable)
@@ -63,6 +63,7 @@ def get_test_runs(repo, tag_name, **kwargs):
 
     # Parse undefined fields from tag names
     str_fields = dict([(f, r'(?P<{}>[\w\-.()]+)'.format(f)) for f in field_names])
+    str_fields['branch'] = r'(?P<branch>[\w\-.()/]+)'
     str_fields['commit'] = '(?P<commit>[0-9a-f]{7,40})'
     str_fields['commit_number'] = '(?P<commit_number>[0-9]{1,7})'
     str_fields['tag_number'] = '(?P<tag_number>[0-9]{1,5})'