show detailed gateway setup info only with "--verbose" or "-v"

This commit is contained in:
holger krekel
2010-07-07 16:44:12 +02:00
parent 9aa1df89ee
commit c0b2df1a77
4 changed files with 22 additions and 10 deletions

View File

@@ -294,11 +294,14 @@ class TerminalDistReporter:
"Python %(version)s "
"cwd: %(cwd)s"
"%(extra)s" % d)
self.write_line(infoline)
if self.config.getvalue("verbose"):
self.write_line(infoline)
self.gateway2info[gateway] = infoline
def pytest_testnodeready(self, node):
self.write_line("[%s] txnode ready to receive tests" %(node.gateway.id,))
if self.config.getvalue("verbose"):
self.write_line(
"[%s] txnode ready to receive tests" %(node.gateway.id,))
def pytest_testnodedown(self, node, error):
if not error: