mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
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:
parent
2102358550
commit
73f6b974dc
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user