[py-svn] r36139 - py/dist/py/test/rsession

fijal at codespeak.net fijal at codespeak.net
Thu Jan 4 09:52:34 CET 2007


Author: fijal
Date: Thu Jan  4 09:52:33 2007
New Revision: 36139

Modified:
   py/dist/py/test/rsession/hostmanage.py
Log:
Forgotten to check that one in


Modified: py/dist/py/test/rsession/hostmanage.py
==============================================================================
--- py/dist/py/test/rsession/hostmanage.py	(original)
+++ py/dist/py/test/rsession/hostmanage.py	Thu Jan  4 09:52:33 2007
@@ -63,10 +63,12 @@
             hosts.append((num, host, gw, str(pkgdir.dirpath())))
     return hosts
 
-# XXX: Options has grown a bit too much, but most of them is just for tests
+# XXX: Options has grown a bit too much, but most of them are just for tests
 def init_hosts(reporter, sshhosts, relpath, pkgdir, rsync_roots=None, \
                remote_python=None, remote_options={}, optimise_localhost=True,\
-               do_sync=True):
+               do_sync=True, done_dict=None):
+    if done_dict is None:
+        done_dict = {}
     assert pkgdir.join("__init__.py").check(), (
             "%s probably wrong" %(pkgdir,))
     assert relpath, relpath
@@ -98,14 +100,14 @@
     rsync.send(pkgdir.dirpath())
 
     # hosts ready
-    return setup_nodes(hosts, pkgdir, remote_options, reporter)
+    return setup_nodes(hosts, pkgdir, remote_options, reporter, done_dict)
 
-def setup_nodes(hosts, pkgdir, remote_options, reporter):
+def setup_nodes(hosts, pkgdir, remote_options, reporter, done_dict):
     nodes = []
     for num, host, gw, remoterootpath in hosts:
         ch = setup_slave(gw, os.path.join(remoterootpath, pkgdir.basename), 
             remote_options)
-        nodes.append(MasterNode(ch, reporter))
+        nodes.append(MasterNode(ch, reporter, done_dict))
     
     return nodes
 


More information about the py-svn mailing list