[Piglit] [PATCH 16/16] framework/core.py: Remove dead code
Dylan Baker
baker.dylan.c at gmail.com
Thu Jan 16 22:20:06 PST 2014
This removes a couple of dead functions.
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/core.py | 37 -------------------------------------
1 file changed, 37 deletions(-)
diff --git a/framework/core.py b/framework/core.py
index b4bc721..177f68f 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -265,29 +265,6 @@ class GroupResult(dict):
assert(isinstance(group, GroupResult))
return group
- @staticmethod
- def make_tree(tests):
- '''
- Convert a flat dict of test results to a hierarchical tree
-
- ``tests`` is a dict whose items have form ``(path, TestResult)``,
- where path is a string with form ``group1/group2/.../test_name``.
-
- Return a tree whose leaves are the values of ``tests`` and
- whose nodes, which have type ``GroupResult``, reflect the
- paths in ``tests``.
- '''
- root = GroupResult()
-
- for (path, result) in tests.items():
- group_path = os.path.dirname(path)
- test_name = os.path.basename(path)
-
- group = root.get_subgroup(group_path)
- group[test_name] = TestResult(result)
-
- return root
-
class TestrunResult:
def __init__(self, resultfile=None):
@@ -600,20 +577,6 @@ class TestProfile:
multi.join()
single.join()
- def remove_test(self, test_path):
- """Remove a fully qualified test from the profile.
-
- ``test_path`` is a string with slash ('/') separated
- components. It has no leading slash. For example::
- test_path = 'spec/glsl-1.30/linker/do-stuff'
- """
-
- l = test_path.split('/')
- group = self.tests[l[0]]
- for group_name in l[1:-2]:
- group = group[group_name]
- del group[l[-1]]
-
def remove_tests(self, function):
""" Remove tests that return true from function
--
1.8.5.3
More information about the Piglit
mailing list