[Piglit] [Patch v2 05/13] framework/exectest.py: Actually pass *args and **kwags in GleanTest

Dylan Baker baker.dylan.c at gmail.com
Tue May 13 11:38:38 PDT 2014

GleanTest has accepted **kwargs for some time, but didn't actually pass
them to the super() call in it's constructor. This patch fixes that and
also adds *args. At the moment we don't take addition args for the
constructor, but we might at some point want to.

Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
 framework/exectest.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/framework/exectest.py b/framework/exectest.py
index 9131d08..4a8714a 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -296,9 +296,10 @@ class PiglitTest(Test):
 class GleanTest(Test):
     globalParams = []
-    def __init__(self, name, **kwargs):
+    def __init__(self, name, *args, **kwargs):
         super(GleanTest, self).__init__([glean_executable, "-o", "-v", "-v",
-                                         "-v", "-t", "+" + name])
+                                         "-v", "-t", "+" + name],
+                                        *args, **kwargs)
     def command(self):

More information about the Piglit mailing list