[Piglit] [PATCH 04/12] framework/exectest.py: Actually pass *args and **kwags in GleanTest
Dylan Baker
baker.dylan.c at gmail.com
Fri Apr 25 09:58:52 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 6c23cd3..7be29c5 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)
@Test.command.getter
def command(self):
--
2.0.0.rc0
More information about the Piglit
mailing list