Add backward compatibility for `slaveoutput attribute to WorkerController` instances

Fix #285
Fix pytest-dev/pytest-cov#191
This commit is contained in:
Bruno Oliveira
2018-02-26 14:51:19 -03:00
parent 63b329c251
commit 76e7b8d0c0
2 changed files with 2 additions and 1 deletions

View File

@@ -307,7 +307,7 @@ class WorkerController(object):
self.notify_inproc(eventname, node=self, **kwargs)
elif eventname == "workerfinished":
self._down = True
self.workeroutput = kwargs['workeroutput']
self.workeroutput = self.slaveoutput = kwargs['workeroutput']
self.notify_inproc("workerfinished", node=self)
elif eventname in ("logstart", "logfinish"):
self.notify_inproc(eventname, node=self, **kwargs)