declare xdist-related hooks directly here (requires a recent py-trunk)

This commit is contained in:
holger krekel
2010-04-22 11:58:13 +02:00
parent e7a47ae911
commit a1ab548cb3
5 changed files with 37 additions and 4 deletions

21
xdist/newhooks.py Normal file
View File

@@ -0,0 +1,21 @@
def pytest_gwmanage_newgateway(gateway, platinfo):
""" called on new raw gateway creation. """
def pytest_gwmanage_rsyncstart(source, gateways):
""" called before rsyncing a directory to remote gateways takes place. """
def pytest_gwmanage_rsyncfinish(source, gateways):
""" called after rsyncing a directory to remote gateways takes place. """
def pytest_testnodeready(node):
""" Test Node is ready to operate. """
def pytest_testnodedown(node, error):
""" Test Node is down. """
def pytest_rescheduleitems(items):
""" reschedule Items from a node that went down. """
def pytest_looponfailinfo(failreports, rootdirs):
""" info for repeating failing tests. """