def run_remote_session(self, failures): |
-> gw, topdir = self._initslavegateway() |
channel = gw.remote_exec(""" |
from py.__.test.terminal.remote import slaverun_TerminalSession |
slaverun_TerminalSession(channel) |
""", stdout=self.out, stderr=self.out) |
try: |
print "MASTER: initiated slave terminal session ->" |
repr = self.config._makerepr(conftestnames=[]) |
channel.send((str(topdir), repr, failures)) |
print "MASTER: send start info, topdir=%s" % (topdir,) |
try: |
return channel.receive() |
except channel.RemoteError, e: |
print "*" * 70 |
print "ERROR while waiting for proper slave startup" |
print "*" * 70 |
print e |
return [] |
finally: |
gw.exit() |