diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-11-16 11:51:13 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-11-21 11:23:12 -0800 |
commit | 4220c9ecf48e770265b0491a9c29a489f38a5004 (patch) | |
tree | f0b10bb9be3d1a51b019a5d0803508e4e793bda7 /framework | |
parent | 2881f72d6b55864ceaeb2a7acf38bd28b3850139 (diff) |
framework/profile: Use re.IGNORECASE for RegexFilter
This flag makes the regular expressions match case-insensitive, and is
useful since piglit treats test names as case insensitive (lowering them
all by default). This was inadvertently changed to not use the flag in
e92555a647, which replaced the part that added this flag with a simpler
implementation, so this patch reverts to the previous behavior.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/profile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/profile.py b/framework/profile.py index 78b3a2d67..94efd0a2c 100644 --- a/framework/profile.py +++ b/framework/profile.py @@ -75,7 +75,7 @@ class RegexFilter(object): """ def __init__(self, filters, inverse=False): - self.filters = [re.compile(f) for f in filters] + self.filters = [re.compile(f, flags=re.IGNORECASE) for f in filters] self.inverse = inverse def __call__(self, name, _): # pylint: disable=invalid-name |