summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-report
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-05-04 14:49:57 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-18 14:01:47 +0100
commitcdb02b7d93fadbb6839312fc3ee9177e38b0391a (patch)
treecd55029b6c6b0880f7d9eec5aeb20a90e328a485 /scripts/oe-build-perf-report
parent0ef6fc5f9bf4d76e711a70942d4c7337b37c5b3f (diff)
downloadpoky-cdb02b7d93fadbb6839312fc3ee9177e38b0391a.tar.gz
oe-build-perf-report: accept parenthesis in tag names
(From OE-Core rev: b1feae0e23300ea3894d14d2e7b1c1f8b419146e) 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 'scripts/oe-build-perf-report')
-rwxr-xr-xscripts/oe-build-perf-report6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index ced5ff2e12..876e3b1a76 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -62,11 +62,13 @@ def get_test_runs(repo, tag_name, **kwargs):
62 log.debug("Found %d tags matching pattern '%s'", len(tags), tag_pattern) 62 log.debug("Found %d tags matching pattern '%s'", len(tags), tag_pattern)
63 63
64 # Parse undefined fields from tag names 64 # Parse undefined fields from tag names
65 str_fields = dict([(f, r'(?P<{}>[\w\-.]+)'.format(f)) for f in field_names]) 65 str_fields = dict([(f, r'(?P<{}>[\w\-.()]+)'.format(f)) for f in field_names])
66 str_fields['commit'] = '(?P<commit>[0-9a-f]{7,40})' 66 str_fields['commit'] = '(?P<commit>[0-9a-f]{7,40})'
67 str_fields['commit_number'] = '(?P<commit_number>[0-9]{1,7})' 67 str_fields['commit_number'] = '(?P<commit_number>[0-9]{1,7})'
68 str_fields['tag_number'] = '(?P<tag_number>[0-9]{1,5})' 68 str_fields['tag_number'] = '(?P<tag_number>[0-9]{1,5})'
69 str_fields.update(kwargs) 69 # escape parenthesis in fields in order to not messa up the regexp
70 fixed_fields = dict([(k, v.replace('(', r'\(').replace(')', r'\)')) for k, v in kwargs.items()])
71 str_fields.update(fixed_fields)
70 tag_re = re.compile(tag_name.format(**str_fields)) 72 tag_re = re.compile(tag_name.format(**str_fields))
71 73
72 # Parse fields from tags 74 # Parse fields from tags