From: Dylan Baker <[email protected]>

This just saves some code duplication.

Signed-off-by: Dylan Baker <[email protected]>
---
 framework/tests/base_tests.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/framework/tests/base_tests.py b/framework/tests/base_tests.py
index 105352f..539dff0 100644
--- a/framework/tests/base_tests.py
+++ b/framework/tests/base_tests.py
@@ -65,11 +65,7 @@ def test_timeout():
     """test.base.Test.run(): Sets status to 'timeout' when timeout exceeded"""
     utils.binary_check('sleep', 1)
 
-    class _Test(Test):
-        def interpret_result(self):
-            super(_Test, self).interpret_result()
-
-    test = _Test(['sleep', '60'])
+    test = utils.Test(['sleep', '60'])
     test.timeout = 1
     test.run()
     nt.eq_(test.result.result, 'timeout')
-- 
2.6.1

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

Reply via email to