From: nejucomo Date: Sun, 1 Jun 2008 02:03:51 +0000 (-0700) Subject: fuse_a: Remove unused webport files... X-Git-Tag: allmydata-tahoe-1.1.0~66 X-Git-Url: https://git.rkrishnan.org/somewhere?a=commitdiff_plain;h=73f6b974dcde4207176570ac19d5add8a84324b5;p=tahoe-lafs%2Ftahoe-lafs.git fuse_a: Remove unused webport files... 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. --- diff --git a/contrib/fuse_a/runtests.py b/contrib/fuse_a/runtests.py index 0d9dd22e..5946c702 100644 --- a/contrib/fuse_a/runtests.py +++ b/contrib/fuse_a/runtests.py @@ -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')