[v2,1/16] framework/results: Lower subtest names

Submitted by Dylan Baker on Sept. 30, 2016, 9:17 p.m.

Details

Message ID 0d535f8a8b7f4b2fc32dfb51f0303dbe2587cbdf.1475269958.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Add support for shader_runner to run more than one test per process" ( rev: 2 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Sept. 30, 2016, 9:17 p.m.
This makes the behavior of the Subtests class more like that of 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@intel.com>
---
 framework/results.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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)