]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_mutable.Version.test_debug: use splitlines() to fix buildslaves
authorBrian Warner <warner@lothar.com>
Sun, 28 Aug 2011 06:47:28 +0000 (23:47 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 28 Aug 2011 06:47:28 +0000 (23:47 -0700)
Any slave running in a directory with spaces in the name was miscounting
shares, causing the test to fail.

src/allmydata/test/test_mutable.py

index ce91a3778d668b0da9cc195ca2d3ad43de89e5c9..028dbd8f09b59a9e0335a5426f209823c1270c34 100644 (file)
@@ -2969,7 +2969,7 @@ class Version(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin, \
             fso.stdout = StringIO()
             fso.stderr = StringIO()
             debug.find_shares(fso)
-            sharefiles = fso.stdout.getvalue().split()
+            sharefiles = fso.stdout.getvalue().splitlines()
             expected = self.nm.default_encoding_parameters["n"]
             self.failUnlessEqual(len(sharefiles), expected)
         d.addCallback(_debug)