Add support for the new pytest_runtest_logfinish hook (pytest 3.4)

This commit is contained in:
Bruno Oliveira
2018-01-10 17:52:27 -02:00
parent 4dc86a1dad
commit 449e6c2e00
4 changed files with 32 additions and 1 deletions

View File

@@ -304,7 +304,7 @@ class SlaveController(object):
self._down = True
self.slaveoutput = kwargs['slaveoutput']
self.notify_inproc("slavefinished", node=self)
elif eventname == "logstart":
elif eventname in ("logstart", "logfinish"):
self.notify_inproc(eventname, node=self, **kwargs)
elif eventname in (
"testreport", "collectreport", "teardownreport"):