[py-svn] r38755 - in py/trunk/py/test/rsession: . testing
hpk at codespeak.net
hpk at codespeak.net
Tue Feb 13 21:09:26 CET 2007
Author: hpk
Date: Tue Feb 13 21:09:25 2007
New Revision: 38755
Modified:
py/trunk/py/test/rsession/reporter.py
py/trunk/py/test/rsession/testing/test_hostmanage.py
Log:
fix reporting of duplicate remote host rsyncs
and adding an XXX test (not easy to test ssh hosts
because it modifies remote state)
Modified: py/trunk/py/test/rsession/reporter.py
==============================================================================
--- py/trunk/py/test/rsession/reporter.py (original)
+++ py/trunk/py/test/rsession/reporter.py Tue Feb 13 21:09:25 2007
@@ -65,7 +65,7 @@
hostrepr, item.remotepath)
else:
print "%15s: skip duplicate rsync to %r" % (
- hostrepr, item.root)
+ hostrepr, item.remotepath)
else:
print "%15s: rsync %r to remote %r" % (hostrepr,
item.root.basename,
Modified: py/trunk/py/test/rsession/testing/test_hostmanage.py
==============================================================================
--- py/trunk/py/test/rsession/testing/test_hostmanage.py (original)
+++ py/trunk/py/test/rsession/testing/test_hostmanage.py Tue Feb 13 21:09:25 2007
@@ -260,6 +260,19 @@
assert not host.relpath
assert events
+ def XXXtest_ssh_rsync_samehost_twice(self):
+ XXX we have no easy way to have a temp directory remotely!
+ option = py.test.config.option
+ if option.sshtarget is None:
+ py.test.skip("no known ssh target, use -S to set one")
+ host1 = HostInfo("%s" % (option.sshtarget, ))
+ host2 = HostInfo("%s" % (option.sshtarget, ))
+ hm = HostManager(config, hosts=[host1, host2])
+ events = []
+ hm.init_rsync(events.append)
+ print events
+ assert 0
+
def test_getpath_relto_home():
x = getpath_relto_home("hello")
assert x == py.path.local._gethomedir().join("hello")
More information about the pytest-commit
mailing list