[svn r63147] get rid of old method for specifying remote execution places.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-20 17:28:14 +01:00
parent 9cd41c91bd
commit a4c14e83f0
7 changed files with 60 additions and 224 deletions

View File

@@ -37,7 +37,7 @@ class TestGatewayManagerPopen:
assert not len(hm.gateways)
def test_hostmanager_rsync_popen_with_path(self, source, dest):
hm = GatewayManager(["popen::%s" %dest] * 1)
hm = GatewayManager(["popen//chdir=%s" %dest] * 1)
hm.makegateways()
source.ensure("dir1", "dir2", "hello")
l = []
@@ -51,7 +51,7 @@ class TestGatewayManagerPopen:
assert dest.join("dir1", "dir2", 'hello').check()
def test_hostmanage_rsync_same_popen_twice(self, source, dest, eventrecorder):
hm = GatewayManager(["popen::%s" %dest] * 2)
hm = GatewayManager(["popen//chdir=%s" %dest] * 2)
hm.makegateways()
source.ensure("dir1", "dir2", "hello")
hm.rsync(source)
@@ -65,7 +65,7 @@ class TestGatewayManagerPopen:
def test_multi_chdir_popen_with_path(self, testdir):
import os
hm = GatewayManager(["popen::hello"] * 2)
hm = GatewayManager(["popen//chdir=hello"] * 2)
testdir.tmpdir.chdir()
hellopath = testdir.tmpdir.mkdir("hello")
hm.makegateways()
@@ -122,8 +122,7 @@ class TestHRSync:
assert 'somedir' in basenames
def test_hrsync_one_host(self, source, dest):
spec = py.execnet.GatewaySpec("popen::%s" % dest)
gw = spec.makegateway()
gw = py.execnet.makegateway("popen//chdir=%s" % dest)
finished = []
rsync = HostRSync(source)
rsync.add_target_host(gw, finished=lambda: finished.append(1))