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: