]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fuse_a: Remove unused webport files...
authornejucomo <nejucomo@gmail.com>
Sun, 1 Jun 2008 02:03:51 +0000 (19:03 -0700)
committernejucomo <nejucomo@gmail.com>
Sun, 1 Jun 2008 02:03:51 +0000 (19:03 -0700)
This prevents the third client from failing to start due to a port
collision with the second client.  The first client, which is used for
testing has a random high port written to webport, and thus does not
interfere.

contrib/fuse_a/runtests.py

index 0d9dd22e79098de1c82f50873e2f4b6ae005742f..5946c70287aa35d595804698e66b10aded11591a 100644 (file)
@@ -162,14 +162,18 @@ class SystemTest (object):
         output = self.run_tahoe('create-client', '--basedir', base)
         self.check_tahoe_output(output, ExpectedCreationOutput, base)
 
+        webportpath = os.path.join(base, 'webport')
         if clientnum == 1:
             # The first client is special:
             self.clientbase = base
             self.port = random.randrange(1024, 2**15)
 
-            f = open(os.path.join(base, 'webport'), 'w')
+            f = open(webportpath, 'w')
             f.write('tcp:%d:interface=127.0.0.1\n' % self.port)
             f.close()
+        else:
+            os.remove(webportpath)
+            
 
         introfurl = os.path.join(introbase, 'introducer.furl')