diff --git a/py/test/rsession/reporter.py b/py/test/rsession/reporter.py index e151f0272..aa4c5fe36 100644 --- a/py/test/rsession/reporter.py +++ b/py/test/rsession/reporter.py @@ -65,7 +65,7 @@ class AbstractReporter(object): 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, diff --git a/py/test/rsession/testing/test_hostmanage.py b/py/test/rsession/testing/test_hostmanage.py index 1fa5e5a83..d57fbe67b 100644 --- a/py/test/rsession/testing/test_hostmanage.py +++ b/py/test/rsession/testing/test_hostmanage.py @@ -260,6 +260,19 @@ class TestHostManager(DirSetup): 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")