diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-24 12:08:19 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-24 14:18:05 -0800 |
commit | 1a40d62470653bc56a2ab1b9bb56538fd2d0bcc8 (patch) | |
tree | 4c47939cda2327a96f49a7d374fb024aef5e8683 /framework/core.py | |
parent | 4a769f01c3dbf58bd1261a0973aec4061c2cb5d6 (diff) |
profile_tests.py: Fix -x and -i with lowercased names
As of ea381355a0625a1 all test names were stored lowercase. The reasons
for this are outlined in that commit message, and while the summary was
updated to correctly handle these changes the -x and -i options to
piglit run were not.
This patch fixes the problem by altering the regex created from the
values passed to be case insensitive. It also adds a testcast to the
nost tests to demonstrate the fix.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'framework/core.py')
-rw-r--r-- | framework/core.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/core.py b/framework/core.py index f3022c9f6..dfc8f6a43 100644 --- a/framework/core.py +++ b/framework/core.py @@ -99,8 +99,10 @@ class Options(object): exclude_filter=None, valgrind=False, dmesg=False, sync=False): self.concurrent = concurrent self.execute = execute - self.filter = [re.compile(x) for x in include_filter or []] - self.exclude_filter = [re.compile(x) for x in exclude_filter or []] + self.filter = \ + [re.compile(x, re.IGNORECASE) for x in include_filter or []] + self.exclude_filter = \ + [re.compile(x, re.IGNORECASE) for x in exclude_filter or []] self.exclude_tests = set() self.valgrind = valgrind self.dmesg = dmesg |