From: Dylan Baker <[email protected]>

This moves some constant arguments out of the permanently stored values
in each test instance into a getter, which reduces the number of
duplicate elements that need to be stored per instance. This reduces
memory usage a little.

Signed-off-by: Dylan Baker <[email protected]>
---
 tests/oglconform.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/oglconform.py b/tests/oglconform.py
index a34d433..c74f3fe 100644
--- a/tests/oglconform.py
+++ b/tests/oglconform.py
@@ -51,8 +51,12 @@ class OGLCTest(Test):
                          r'scheduled due to lack of compatible fbconfig')
 
     def __init__(self, category, subtest):
-        super(OGLCTest, self).__init__([bin_oglconform, '-minFmt', '-v', '4',
-                                        '-test', category, subtest])
+        super(OGLCTest, self).__init__([category, subtest])
+
+    @Test.command.getter
+    def command(self):
+        return [bin_oglconform, '-minFmt', '-v', '4', '-test'] + \
+            super(OGLCTest, self).command
 
     def interpret_result(self):
         if self.skip_re.search(self.result.out) is not None:
-- 
2.6.2

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to