Transfer warnings from workers to master

Fix #92
This commit is contained in:
Bruno Oliveira
2017-08-09 07:32:14 -03:00
parent 02754d84d3
commit d0474076e9
5 changed files with 25 additions and 0 deletions

View File

@@ -247,6 +247,11 @@ class DSession:
if rep.failed:
self._failed_slave_collectreport(node, rep)
def slave_logwarning(self, message, code, nodeid, fslocation):
"""Emitted when a node calls the pytest_logwarning hook."""
kwargs = dict(message=message, code=code, nodeid=nodeid, fslocation=fslocation)
self.config.hook.pytest_logwarning.call_historic(kwargs=kwargs)
def _clone_node(self, node):
"""Return new node based on an existing one.