From 0a79e56b40a41b71d0b755ca786d854397b5b482 Mon Sep 17 00:00:00 2001 From: hpk Date: Thu, 8 Feb 2007 20:23:06 +0100 Subject: [PATCH] [svn r38201] fixing the windows conftest example to work with the new rsync interface --HG-- branch : trunk --- py/misc/conftest-socketgatewayrun.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/misc/conftest-socketgatewayrun.py b/py/misc/conftest-socketgatewayrun.py index 990d70bba..04e634416 100644 --- a/py/misc/conftest-socketgatewayrun.py +++ b/py/misc/conftest-socketgatewayrun.py @@ -34,7 +34,6 @@ class MySession(RemoteTerminalSession): def _initslavegateway(self): print "MASTER: initializing remote socket gateway" gw = py.execnet.SocketGateway(*self.socketserveradr) - rsync = MyRSync(delete=True) pkgname = 'py' # xxx flexibilize channel = gw.remote_exec(""" import os @@ -43,9 +42,10 @@ class MySession(RemoteTerminalSession): channel.send((topdir, pkgdir)) """ % (pkgname,)) remotetopdir, remotepkgdir = channel.receive() - rsync.add_target(gw, remotepkgdir) 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(""" import os, sys path = %r # os.path.abspath