[py-svn] r38201 - py/trunk/py/misc

hpk at codespeak.net hpk at codespeak.net
Thu Feb 8 20:23:09 CET 2007


Author: hpk
Date: Thu Feb  8 20:23:06 2007
New Revision: 38201

Modified:
   py/trunk/py/misc/conftest-socketgatewayrun.py
Log:
fixing the windows conftest example to work with
the new rsync interface


Modified: py/trunk/py/misc/conftest-socketgatewayrun.py
==============================================================================
--- py/trunk/py/misc/conftest-socketgatewayrun.py	(original)
+++ py/trunk/py/misc/conftest-socketgatewayrun.py	Thu Feb  8 20:23:06 2007
@@ -34,7 +34,6 @@
     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 @@
             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



More information about the pytest-commit mailing list