From e64d602cd26f6b97960c8ed25f7a4811a4f08625 Mon Sep 17 00:00:00 2001 From: hpk Date: Sun, 28 Jan 2007 10:07:22 +0100 Subject: [PATCH] [svn r37458] try to only rsync the py lib, not the dirpath() of it --HG-- branch : trunk --- py/misc/conftest-socketgatewayrun.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/py/misc/conftest-socketgatewayrun.py b/py/misc/conftest-socketgatewayrun.py index 31b7b3e13..24246d4b2 100644 --- a/py/misc/conftest-socketgatewayrun.py +++ b/py/misc/conftest-socketgatewayrun.py @@ -34,14 +34,16 @@ class MySession(RemoteTerminalSession): 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 - path = os.path.join(os.environ['HOMEPATH'], 'pytestcache') - channel.send(path) - """) - remotetopdir = channel.receive() - rsync.add_target(gw, remotetopdir) - sendpath = py.path.local(py.__file__).dirpath().dirpath() + topdir = os.path.join(os.environ['HOMEPATH'], 'pytestcache') + pkgdir = os.path.join(topdir, %r) + channel.send((topdir, pkgdir)) + """ % (pkgname,)) + remotetopdir, remotepkgdir = channel.receive() + rsync.add_target(gw, remotepkgdir) + sendpath = py.path.local(py.__file__).dirpath() rsync.send(sendpath) channel = gw.remote_exec(""" import os, sys