[py-svn] r37971 - py/trunk/py/test/rsession
fijal at codespeak.net
fijal at codespeak.net
Mon Feb 5 16:11:07 CET 2007
Author: fijal
Date: Mon Feb 5 16:11:05 2007
New Revision: 37971
Modified:
py/trunk/py/test/rsession/hostmanage.py
Log:
This was there for a reason that we don't want to have different pylib loaded (there was even test for that, apparently killed)
Modified: py/trunk/py/test/rsession/hostmanage.py
==============================================================================
--- py/trunk/py/test/rsession/hostmanage.py (original)
+++ py/trunk/py/test/rsession/hostmanage.py Mon Feb 5 16:11:05 2007
@@ -5,7 +5,8 @@
from py.__.test.rsession.master import MasterNode
from py.__.test.rsession.slave import setup_slave
-from py.__.test.rsession import repevent
+from py.__.test.rsession import repevent
+from py.__.execnet.register import PopenCmdGateway
class HostInfo(object):
""" Class trying to store all necessary attributes
@@ -31,8 +32,9 @@
def initgateway(self, python="python"):
assert not hasattr(self, 'gw')
- if self.hostname == "localhost":
- gw = py.execnet.PopenGateway(python=python)
+ if self.hostname == "localhost":
+ cmd = 'cd ~; %s -u -c "exec input()"' % python
+ gw = PopenCmdGateway(cmd)
else:
gw = py.execnet.SshGateway(self.hostname,
remotepython=python)
@@ -76,6 +78,7 @@
if 'ignores' in kwargs:
ignores = kwargs.pop('ignores')
self._ignores = ignores or []
+ kwargs['delete'] = True
super(HostRSync, self).__init__(*args, **kwargs)
def filter(self, path):
More information about the pytest-commit
mailing list