[Piglit] [PATCH 4/6] tests/igt.py: move timeout parameter to class level

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Tue Oct 20 17:07:22 PDT 2015


From: Dylan Baker <baker.dylan.c at gmail.com>

It's constant across the class and this will save a tiny bit of memory.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/igt.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/igt.py b/tests/igt.py
index 4f970a8..d04f6c8 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -101,12 +101,13 @@ profile = IGTTestProfile()  # pylint: disable=invalid-name
 
 class IGTTest(Test):
     """Test class for running libdrm."""
+    timeout = 600
+
     def __init__(self, binary, arguments=None):
         if arguments is None:
             arguments = []
         super(IGTTest, self).__init__(
             [os.path.join(IGT_TEST_ROOT, binary)] + arguments)
-        self.timeout = 600
 
     def interpret_result(self):
         if self.result.returncode == 0:
-- 
2.6.1



More information about the Piglit mailing list