]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_runner.py: fix a bug in CreateNode.do_create introduced in changeset [5114]...
authordavid-sarah <david-sarah@jacaranda.org>
Thu, 4 Aug 2011 00:30:32 +0000 (17:30 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Thu, 4 Aug 2011 00:30:32 +0000 (17:30 -0700)
src/allmydata/test/test_runner.py

index 22678f6f6842a33d0d4769d2d4fd56153815444a..ba74b153174bc0dce844dbab0268c9ccfb0cb02a 100644 (file)
@@ -246,7 +246,7 @@ class CreateNode(unittest.TestCase):
             # 'create-node', and disabled for 'create-client'.
             tahoe_cfg = os.path.join(n1, "tahoe.cfg")
             self.failUnless(os.path.exists(tahoe_cfg))
-            content = fileutil.read(tahoe_cfg)
+            content = fileutil.read(tahoe_cfg).replace('\r\n', '\n')
             if kind == "client":
                 self.failUnless(re.search(r"\n\[storage\]\n#.*\nenabled = false\n", content), content)
             else: