]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
check_memory: more keepalive-file debug messages
authorBrian Warner <warner@allmydata.com>
Wed, 26 Sep 2007 01:47:48 +0000 (18:47 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 26 Sep 2007 01:47:48 +0000 (18:47 -0700)
src/allmydata/test/check_memory.py

index d84dc3052ce37c44e8a72b9d36cfd857cb21f582..1fd3406c50c6d5d7859394ed102e8e58654fb88a 100644 (file)
@@ -142,6 +142,9 @@ class SystemFramework(testutil.PollMixin):
         # the client node will shut down in a few seconds
         #os.remove(os.path.join(self.clientdir, "suicide_prevention_hotline"))
         log.msg("shutting down SystemTest services")
+        if os.path.exists(self.keepalive_file):
+            age = time.time() - os.stat(self.keepalive_file)[stat.ST_MTIME]
+            log.msg("keepalive file at shutdown was %ds old" % age)
         d = defer.succeed(None)
         if self.proc:
             d.addCallback(lambda res: self.kill_client())