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.
This commit is contained in:
nejucomo 2008-05-31 19:03:51 -07:00
parent 2102358550
commit 73f6b974dc

View File

@ -162,14 +162,18 @@ class SystemTest (object):
output = self.run_tahoe('create-client', '--basedir', base) output = self.run_tahoe('create-client', '--basedir', base)
self.check_tahoe_output(output, ExpectedCreationOutput, base) self.check_tahoe_output(output, ExpectedCreationOutput, base)
webportpath = os.path.join(base, 'webport')
if clientnum == 1: if clientnum == 1:
# The first client is special: # The first client is special:
self.clientbase = base self.clientbase = base
self.port = random.randrange(1024, 2**15) 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.write('tcp:%d:interface=127.0.0.1\n' % self.port)
f.close() f.close()
else:
os.remove(webportpath)
introfurl = os.path.join(introbase, 'introducer.furl') introfurl = os.path.join(introbase, 'introducer.furl')