[Piglit] [PATCH 3/7] framework/tests/base_tests.py: mark timeout tests as slow

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Thu Oct 8 14:49:43 PDT 2015


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

This marks the timeout tests as slow (because they are). This is nice
for excluding things.

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

diff --git a/framework/tests/base_tests.py b/framework/tests/base_tests.py
index e65f673..caef9e3 100644
--- a/framework/tests/base_tests.py
+++ b/framework/tests/base_tests.py
@@ -23,6 +23,7 @@
 from __future__ import print_function, absolute_import
 
 import nose.tools as nt
+from nose.plugins.attrib import attr
 
 import framework.tests.utils as utils
 from framework.test.base import (
@@ -59,6 +60,7 @@ def test_run_return_early():
     test.run()
 
 
+ at attr('slow')
 def test_timeout():
     """test.base.Test.run(): kills tests that exceed timeout when set"""
     utils.binary_check('sleep', 1)
@@ -73,6 +75,7 @@ def test_timeout():
     nt.eq_(test.result.result, 'timeout')
 
 
+ at attr('slow')
 def test_timeout_pass():
     """test.base.Test.run(): Result is returned when timeout is set but not exceeded
     """
-- 
2.6.1



More information about the Piglit mailing list