[Piglit] [PATCH 13/20] dmesg_tests.py: remove duplicate helper functions
Dylan Baker
baker.dylan.c at gmail.com
Sat Jun 14 08:05:22 PDT 2014
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/tests/dmesg_tests.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py
index ced3d9a..166f98f 100644
--- a/framework/tests/dmesg_tests.py
+++ b/framework/tests/dmesg_tests.py
@@ -313,15 +313,11 @@ def check_classes_dmesg(test_class, test_args):
raise SkipTest("This tests requires a working, built version of "
"piglit")
- def _write_dmesg():
- """ Small helper to write dmesg """
- subprocess.call(['sudo', 'sh', '-c', 'echo "piglit test" > /dev/kmsg'])
-
dmesg = _get_dmesg()
# Create the test and then write to dmesg to ensure that it actually works
test = test_class(test_args)
- test._test_hook_execute_run = _write_dmesg
+ test._test_hook_execute_run = _write_dev_kmesg
json = DummyJsonWriter()
--
2.0.0
More information about the Piglit
mailing list