[Piglit] [PATCH 1/27] framework/profile: drop pre and post run hooks.
Dylan Baker
dylan at pnwbakers.com
Mon Oct 24 19:54:47 UTC 2016
These were never used for anything, and are just taking up space. They
also get in the way of changes that are coming later in this series.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/profile.py | 20 --------------------
1 file changed, 0 insertions(+), 20 deletions(-)
diff --git a/framework/profile.py b/framework/profile.py
index 7b0cb07..1edab03 100644
--- a/framework/profile.py
+++ b/framework/profile.py
@@ -287,22 +287,6 @@ class TestProfile(object):
raise exceptions.PiglitFatalError(
'There are no tests scheduled to run. Aborting run.')
- def _pre_run_hook(self):
- """ Hook executed at the start of TestProfile.run
-
- To make use of this hook one will need to subclass TestProfile, and
- set this to do something, as be default it will no-op
- """
- pass
-
- def _post_run_hook(self):
- """ Hook executed at the end of TestProfile.run
-
- To make use of this hook one will need to subclass TestProfile, and
- set this to do something, as be default it will no-op
- """
- pass
-
def run(self, logger, backend):
""" Runs all tests using Thread pool
@@ -321,8 +305,6 @@ class TestProfile(object):
"""
- self._pre_run_hook()
-
chunksize = 1
self._prepare_test_list()
@@ -372,8 +354,6 @@ class TestProfile(object):
log.get().summary()
raise
- self._post_run_hook()
-
if self._monitoring.abort_needed:
raise exceptions.PiglitAbort(self._monitoring.error_message)
--
git-series 0.8.10
More information about the Piglit
mailing list