Add print statements.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2015-09-03 15:47:20 +01:00
parent e6b98b54ad
commit c8f5c690ba
3 changed files with 7 additions and 2 deletions

View File

@ -129,6 +129,7 @@ class Client(node.Node, pollmixin.PollMixin):
}
def __init__(self, basedir="."):
print "Client.__init__(%r)" % (basedir,)
node.Node.__init__(self, basedir)
self.connected_enough_d = defer.Deferred()
self.started_timestamp = time.time()
@ -493,6 +494,7 @@ class Client(node.Node, pollmixin.PollMixin):
s.setServiceParent(self)
def init_magic_folder(self):
print "init_magic_folder"
if self.get_config("drop_upload", "enabled", False, boolean=True):
raise OldConfigOptionError("The [drop_upload] section must be renamed to [magic_folder].\n"
"See docs/frontends/magic-folder.rst for more information.")

View File

@ -92,6 +92,7 @@ class MagicFolderTestMixin(CLITestMixin, GridTestMixin):
return d
def cleanup(self, res):
print "cleanup", res
d = defer.succeed(None)
if self.magicfolder is not None:
d.addCallback(lambda ign: self.magicfolder.finish())

View File

@ -209,12 +209,14 @@ class MagicFolderTestMixin(MagicFolderTestMixin, ShouldFailMixin, ReallyEqualMix
d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_queued'), 0))
def restart(ignore):
#print "restart"
print "restart"
tahoe_config_file = os.path.join(self.get_clientdir(), "tahoe.cfg")
tahoe_config = fileutil.read(tahoe_config_file)
print tahoe_config
self.failUnlessIn("[magic_folder]\nenabled = True", tahoe_config)
d3 = defer.succeed(None)
def write_config(client_node_dir):
#print "write_config"
print "write_config"
fileutil.write(os.path.join(client_node_dir, "tahoe.cfg"), tahoe_config)
def setup_stats(result):
#print "setup_stats"