From 9e7886c59b02e460657707ebc54aa0e63a7499a7 Mon Sep 17 00:00:00 2001 From: hpk Date: Sun, 28 Jan 2007 09:49:28 +0100 Subject: [PATCH] [svn r37457] explicitely shutdown the gateway for the remote session after each run. --HG-- branch : trunk --- py/test/terminal/remote.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/py/test/terminal/remote.py b/py/test/terminal/remote.py index 45a6ac488..98a74df0d 100644 --- a/py/test/terminal/remote.py +++ b/py/test/terminal/remote.py @@ -101,18 +101,21 @@ class RemoteTerminalSession(object): from py.__.test.terminal.remote import slaverun_TerminalSession slaverun_TerminalSession(channel) """, stdout=self.out, stderr=self.out) - print "MASTER: initiated slave terminal session ->" - repr = self.config.make_repr(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 [] + print "MASTER: initiated slave terminal session ->" + repr = self.config.make_repr(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() def slaverun_TerminalSession(channel): """ we run this on the other side. """