diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-05-04 14:49:57 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-18 14:01:38 +0100 |
commit | b1feae0e23300ea3894d14d2e7b1c1f8b419146e (patch) | |
tree | 0fbf7f00585e7eb2869b08307d5130a7469f1752 /scripts | |
parent | cab20f3b2fe668a63c58b44f2ad797fed74226fe (diff) | |
download | openembedded-core-b1feae0e23300ea3894d14d2e7b1c1f8b419146e.tar.gz openembedded-core-b1feae0e23300ea3894d14d2e7b1c1f8b419146e.tar.bz2 openembedded-core-b1feae0e23300ea3894d14d2e7b1c1f8b419146e.zip |
oe-build-perf-report: accept parenthesis in tag names
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-build-perf-report | 6 |
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): log.debug("Found %d tags matching pattern '%s'", len(tags), tag_pattern) # Parse undefined fields from tag names - str_fields = dict([(f, r'(?P<{}>[\w\-.]+)'.format(f)) for f in field_names]) + str_fields = dict([(f, r'(?P<{}>[\w\-.()]+)'.format(f)) for f in field_names]) 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})' - str_fields.update(kwargs) + # escape parenthesis in fields in order to not messa up the regexp + fixed_fields = dict([(k, v.replace('(', r'\(').replace(')', r'\)')) for k, v in kwargs.items()]) + str_fields.update(fixed_fields) tag_re = re.compile(tag_name.format(**str_fields)) # Parse fields from tags |