]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
TeuthologyContextPlugin: Remove pytest_configure()
authorZack Cerza <zack@redhat.com>
Wed, 2 Mar 2022 23:40:06 +0000 (16:40 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 4 Mar 2022 22:00:13 +0000 (15:00 -0700)
The reason for this method's behavior here is no longer valid. Also, it
prevents any output from being logged.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/tests/__init__.py

index 136ae049bc6943d481d079f83b4fd7805fd56e07..561d96fafe680e96785c16e32c0d154fa46a328f 100644 (file)
@@ -39,15 +39,6 @@ class TeuthologyContextPlugin(object):
         # pass the teuthology ctx and config to each test method
         metafunc.parametrize(["ctx", "config"], [(self.ctx, self.config),])
 
-    @pytest.mark.trylast
-    def pytest_configure(self, config):
-        # removes the default pytest TerminalReporter
-        # this fixes failures with scheduled jobs; when run by a worker
-        # there is no terminal to report to and pytest dies
-        standard_reporter = config.pluginmanager.getplugin('terminalreporter')
-        config.pluginmanager.unregister(standard_reporter)
-        log.info("removing pytest terminal reporter")
-
     # log the outcome of each test
     def pytest_runtest_makereport(self, __multicall__, item, call):
         report = __multicall__.execute()