[v2,1/26] framework/profile: drop pre and post run hooks.

Submitted by Dylan Baker on Oct. 27, 2016, 9:31 p.m.

Details

Message ID 741c1337c6165cab7c48186c03eae85931efee92.1477603560.git-series.dylan@pnwbakers.com
State New
Headers show

Not browsing as part of any series.

Patch hide | download patch | download mbox

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)