From ef43218016d52ada71ff99dc88fa1dfce26ded1e Mon Sep 17 00:00:00 2001 From: hpk Date: Tue, 6 Feb 2007 20:15:33 +0100 Subject: [PATCH] [svn r38027] more precise reporting to the user --HG-- branch : trunk --- py/test/rsession/reporter.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/py/test/rsession/reporter.py b/py/test/rsession/reporter.py index a014b9288..0c86fad49 100644 --- a/py/test/rsession/reporter.py +++ b/py/test/rsession/reporter.py @@ -62,7 +62,7 @@ class AbstractReporter(object): def report_HostGatewayReady(self, item): self.to_rsync[item.host] = len(item.roots) - self.out.write("%10s: gateway initialised (PYTHONPATH = %s)\n"\ + self.out.write("%10s: gateway initialised (remote topdir: %s)\n"\ % (item.host.hostname, item.host.gw_remotepath)) def report_HostRSyncRootReady(self, item): @@ -84,11 +84,12 @@ class AbstractReporter(object): self.hosts_to_rsync = len(item.hosts) self.out.sep("=", txt) self.timestart = item.timestart - self.out.write("Root directory: %s\n" % item.topdir) + self.out.write("local top directory: %s\n" % item.topdir) roots = [str(i.relto(item.topdir)) for i in item.roots] - self.out.write("To rsync:\n") - for root in roots: - self.out.write(" => %s\n" % root) + for i, root in py.builtin.enumerate(roots): + outof = "%d/%d" %(i+1, len(roots)) + self.out.write("local RSync root [%s] %s\n" % + (outof, root)) def report_RsyncFinished(self, item): self.timersync = item.time