[Piglit] [PATCH 1/15] framework/results: Lower subtest names

Dylan Baker dylan at pnwbakers.com
Fri Sep 9 19:18:39 UTC 2016


This makes the behavior of the Subtests class more the TestDict class,
and fixes a bug in MultiShaderRunner, which will be added in a
subsequent patch in this series.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/results.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/results.py b/framework/results.py
index 2095d90..756d261 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -47,13 +47,13 @@ class Subtests(collections.MutableMapping):
             self.update(dict_)
 
     def __setitem__(self, name, value):
-        self.__container[name] = status.status_lookup(value)
+        self.__container[name.lower()] = status.status_lookup(value)
 
     def __getitem__(self, name):
-        return self.__container[name]
+        return self.__container[name.lower()]
 
     def __delitem__(self, name):
-        del self.__container[name]
+        del self.__container[name.lower()]
 
     def __iter__(self):
         return iter(self.__container)
-- 
git-series 0.8.10


More information about the Piglit mailing list