mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
test_runner.py: fix a bug in CreateNode.do_create introduced in changeset [5114] when the tahoe.cfg file has been written with CRLF line endings. refs #1385
This commit is contained in:
parent
b6cfbbeb23
commit
b9eb0235ea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user