[Piglit] [PATCH 3/6] profile_tests.py: Decorate tests with utils.nose_generator
Dylan Baker
baker.dylan.c at gmail.com
Tue Sep 30 11:31:36 PDT 2014
This decorator wraps the resulting functions from the test generators in
an instance. This works around a nose generator design flaw, described
elsewhere in greater detail.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/tests/profile_tests.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/framework/tests/profile_tests.py b/framework/tests/profile_tests.py
index 83880f9..1d825c7 100644
--- a/framework/tests/profile_tests.py
+++ b/framework/tests/profile_tests.py
@@ -140,6 +140,7 @@ def test_testprofile_update_test_list():
nt.assert_dict_equal(profile1.test_list, baseline)
+ at utils.nose_generator
def generate_prepare_test_list_flatten():
""" Generate tests for TestProfile.prepare_test_list() """
tests = {'group1': {'test1': 'thingy', 'group3': {'test2': 'thing'}},
@@ -180,6 +181,7 @@ def check_mixed_flatten(tests, testlist):
nt.assert_dict_equal(profile_.test_list, baseline)
+ at utils.nose_generator
def generate_prepare_test_list_test_test_matches():
""" Generate tests for TestProfile.perpare_test_list filtering """
data = {'group1/test1': 'thingy', 'group1/group3/test2': 'thing',
--
2.1.1
More information about the Piglit
mailing list