From: Brian Warner Date: Sat, 13 Oct 2007 23:06:39 +0000 (-0700) Subject: test_runner.RunNode: pass an explicit webport, to avoid using 8123 (which might be... X-Git-Tag: allmydata-tahoe-0.6.1~21 X-Git-Url: https://git.rkrishnan.org/architecture.txt?a=commitdiff_plain;h=07b03bd55ba792cc5702bf302808ec9433fa89f3;p=tahoe-lafs%2Ftahoe-lafs.git test_runner.RunNode: pass an explicit webport, to avoid using 8123 (which might be in used by a running node). Closes #175. --- diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py index 80ef42c1..30b17a9a 100644 --- a/src/allmydata/test/test_runner.py +++ b/src/allmydata/test/test_runner.py @@ -108,7 +108,7 @@ class RunNode(unittest.TestCase, testutil.PollMixin): raise unittest.SkipTest("twistd does not fork under windows") basedir = self.workdir("test_client") c1 = os.path.join(basedir, "c1") - argv = ["--quiet", "create-client", "--basedir", c1] + argv = ["--quiet", "create-client", "--basedir", c1, "--webport", "0"] out,err = StringIO(), StringIO() rc = runner.runner(argv, stdout=out, stderr=err) self.failUnlessEqual(rc, 0)