From 73f6b974dcde4207176570ac19d5add8a84324b5 Mon Sep 17 00:00:00 2001 From: nejucomo Date: Sat, 31 May 2008 19:03:51 -0700 Subject: [PATCH] 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. --- contrib/fuse_a/runtests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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') -- 2.45.2