From fe522e31a4ee16e87b8493549d5dcc88df2e1cc9 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 28 Jul 2008 16:40:29 -0700
Subject: [PATCH] tests: make it so that you can use common.py's
 SystemTestMixin.set_up_nodes() more than once with the same introducer

---
 src/allmydata/test/common.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/allmydata/test/common.py b/src/allmydata/test/common.py
index a2cffc7c..9f737273 100644
--- a/src/allmydata/test/common.py
+++ b/src/allmydata/test/common.py
@@ -225,14 +225,14 @@ class SystemTestMixin(testutil.SignalMixin, testutil.PollMixin,
         iv_dir = self.getdir("introducer")
         if not os.path.isdir(iv_dir):
             fileutil.make_dirs(iv_dir)
-        f = open(os.path.join(iv_dir, "webport"), "w")
-        f.write("tcp:0:interface=127.0.0.1\n")
-        f.close()
-        if SYSTEM_TEST_CERTS:
-            os.mkdir(os.path.join(iv_dir, "private"))
-            f = open(os.path.join(iv_dir, "private", "node.pem"), "w")
-            f.write(SYSTEM_TEST_CERTS[0])
+            f = open(os.path.join(iv_dir, "webport"), "w")
+            f.write("tcp:0:interface=127.0.0.1\n")
             f.close()
+            if SYSTEM_TEST_CERTS:
+                os.mkdir(os.path.join(iv_dir, "private"))
+                f = open(os.path.join(iv_dir, "private", "node.pem"), "w")
+                f.write(SYSTEM_TEST_CERTS[0])
+                f.close()
         iv = IntroducerNode(basedir=iv_dir)
         self.introducer = self.add_service(iv)
         d = self.introducer.when_tub_ready()
-- 
2.45.2