]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fuse/runtest: make removal of webport file soft
authorrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 17 Oct 2008 03:01:54 +0000 (20:01 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 17 Oct 2008 03:01:54 +0000 (20:01 -0700)
previously the runtests suite removed the webport file created by
tahoe create-client in all but the first node.  now that the node config
is in tahoe.cfg by default this file might not exist.

contrib/fuse/runtests.py

index 23de5cfc770c7c3a80f9e4175f71f28c4896f8ee..591b924817ef744e32d4ad77c25f0674681c563d 100644 (file)
@@ -291,7 +291,8 @@ class SystemTest (object):
             self.weburl = "http://127.0.0.1:%d/" % (self.port,)
             print self.weburl
         else:
-            os.remove(webportpath)
+            if os.path.exists(webportpath):
+                os.remove(webportpath)
 
         introfurl = os.path.join(introbase, 'introducer.furl')