[Piglit] [PATCH 14/19] results_tests.py: Add utils.nose_generator decorator to a test

Dylan Baker baker.dylan.c at gmail.com
Thu Aug 28 15:35:42 PDT 2014


test_generate_initialize is a generator that was not decorated, meaning
that if any test other than the last one failed they would have the
wrong name in the description.

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

diff --git a/framework/tests/results_tests.py b/framework/tests/results_tests.py
index 778882c..12b6e80 100644
--- a/framework/tests/results_tests.py
+++ b/framework/tests/results_tests.py
@@ -43,6 +43,7 @@ def check_initialize(target):
     assert isinstance(func, target)
 
 
+ at utils.nose_generator
 def test_generate_initialize():
     """ Generator that creates tests to initialize all of the classes in core
 
-- 
2.1.0



More information about the Piglit mailing list