From 5591bef68f7079046cce4fd9b002a722f36b261d Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 2 Mar 2022 16:40:06 -0700 Subject: [PATCH] TeuthologyContextPlugin: Remove pytest_configure() 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 --- teuthology/task/tests/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/teuthology/task/tests/__init__.py b/teuthology/task/tests/__init__.py index 136ae049bc..561d96fafe 100644 --- a/teuthology/task/tests/__init__.py +++ b/teuthology/task/tests/__init__.py @@ -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() -- 2.39.5