[Piglit] [PATCH v2 3/6] framework/tests/base_tests.py: use utils helper to simplify test
baker.dylan.c at gmail.com
baker.dylan.c at gmail.com
Fri Oct 23 18:17:21 PDT 2015
From: Dylan Baker <baker.dylan.c at gmail.com>
This just saves some code duplication.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
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
More information about the Piglit
mailing list