From 6ecd8c70cec4cfa3ea4b9c5b000a41cfc28aeca4 Mon Sep 17 00:00:00 2001 From: Alex Latchford Date: Mon, 29 Nov 2021 14:35:38 -0800 Subject: [PATCH 1/2] Formalize fix from @codeRulc for #76 to stop duplicate output --- pytest_parallel/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pytest_parallel/__init__.py b/pytest_parallel/__init__.py index e584800..ca2593e 100644 --- a/pytest_parallel/__init__.py +++ b/pytest_parallel/__init__.py @@ -348,10 +348,11 @@ def pytest_runtest_logreport(self, report): self.send_response('testreport', report=data) def on_testreport(self, report): - report = self._config.hook.pytest_report_from_serializable( - config=self._config, data=report - ) - self._config.hook.pytest_runtest_logreport(report=report) + if self._config.parallel_worker: + report = self._config.hook.pytest_report_from_serializable( + config=self._config, data=report + ) + self._config.hook.pytest_runtest_logreport(report=report) def process_responses(self, queue): while True: From a7aa4d2631cd559c33263900f298a6259afd4347 Mon Sep 17 00:00:00 2001 From: Alex Latchford Date: Wed, 4 May 2022 17:08:14 -0700 Subject: [PATCH 2/2] Retrigger tests