[Piglit] [PATCH 1/4] framework/tests/dmesg_tests.py: remove privileged_geneartor

baker.dylan.c at gmail.com baker.dylan.c at gmail.com
Mon Oct 12 15:13:50 PDT 2015


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

This function was a) Unused and b) broken.

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

diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py
index 8ef7e0e..aed0d92 100644
--- a/framework/tests/dmesg_tests.py
+++ b/framework/tests/dmesg_tests.py
@@ -73,23 +73,6 @@ def _write_dev_kmesg():
         raise SkipTest("Writing to the ringbuffer failed")
 
 
-def privileged_generator(func):
-    """Like utils.nose_generator, but for privileged tests.
-
-    This makes the tests yielded privlileged, which means using '-e sudo' will
-    exclude them
-    
-    """
-
-    def sudo_test_wrapper(*args, **kwargs):
-        for x in func(*args, **kwargs):
-            x = list(x)
-            x[0] = utils.privileged_test(utils.GeneratedTestWrapper(x[0]))
-            yield tuple(x)
-
-    return sudo_test_wrapper
-
-
 class DummyJsonWriter(object):
     """ A very simple dummy for json writer """
     def __init__(self):
-- 
2.6.1



More information about the Piglit mailing list