[svn r38201] fixing the windows conftest example to work with
the new rsync interface --HG-- branch : trunk
This commit is contained in:
parent
3ea6a768e0
commit
0a79e56b40
|
@ -34,7 +34,6 @@ class MySession(RemoteTerminalSession):
|
||||||
def _initslavegateway(self):
|
def _initslavegateway(self):
|
||||||
print "MASTER: initializing remote socket gateway"
|
print "MASTER: initializing remote socket gateway"
|
||||||
gw = py.execnet.SocketGateway(*self.socketserveradr)
|
gw = py.execnet.SocketGateway(*self.socketserveradr)
|
||||||
rsync = MyRSync(delete=True)
|
|
||||||
pkgname = 'py' # xxx flexibilize
|
pkgname = 'py' # xxx flexibilize
|
||||||
channel = gw.remote_exec("""
|
channel = gw.remote_exec("""
|
||||||
import os
|
import os
|
||||||
|
@ -43,9 +42,10 @@ class MySession(RemoteTerminalSession):
|
||||||
channel.send((topdir, pkgdir))
|
channel.send((topdir, pkgdir))
|
||||||
""" % (pkgname,))
|
""" % (pkgname,))
|
||||||
remotetopdir, remotepkgdir = channel.receive()
|
remotetopdir, remotepkgdir = channel.receive()
|
||||||
rsync.add_target(gw, remotepkgdir)
|
|
||||||
sendpath = py.path.local(py.__file__).dirpath()
|
sendpath = py.path.local(py.__file__).dirpath()
|
||||||
rsync.send(sendpath)
|
rsync = MyRSync(sendpath)
|
||||||
|
rsync.add_target(gw, remotepkgdir, delete=True)
|
||||||
|
rsync.send()
|
||||||
channel = gw.remote_exec("""
|
channel = gw.remote_exec("""
|
||||||
import os, sys
|
import os, sys
|
||||||
path = %r # os.path.abspath
|
path = %r # os.path.abspath
|
||||||
|
|
Loading…
Reference in New Issue