Rev 4582: (mbp) check blackbox tests now handle the root being included in the in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Mon Aug 3 08:15:12 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4582 [merge]
revision-id: pqm at pqm.ubuntu.com-20090803071511-dwb041qzak0vjzdk
parent: pqm at pqm.ubuntu.com-20090803044716-k5oyle1gq2a7ioxg
parent: mbp at sourcefrog.net-20090803061210-cuq09gc56h3egcx8
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2009-08-03 08:15:11 +0100
message:
  (mbp) check blackbox tests now handle the root being included in the
  	file-id count
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/tests/blackbox/test_check.py test_check.py-20071024054728-mn44rt3z5hnqcbke-1
=== modified file 'NEWS'
--- a/NEWS	2009-08-03 04:47:16 +0000
+++ b/NEWS	2009-08-03 06:12:10 +0000
@@ -160,6 +160,12 @@
 * --subunit support now adds timestamps if the subunit version supports
   it. (Robert Collins)
 
+Testing
+*******
+
+* Spurious failure in ``check`` tests on rich-root formats fixed.
+  (Martin Pool, #408199)
+
 * The ``bzrlib.tests.TextTestRunner`` will no longer call
   ``countTestsCases`` on the test being run. Progress information is
   instead handled by having the test passed in call ``result.progress``

=== modified file 'bzrlib/tests/blackbox/test_check.py'
--- a/bzrlib/tests/blackbox/test_check.py	2009-03-23 14:59:43 +0000
+++ b/bzrlib/tests/blackbox/test_check.py	2009-08-03 04:40:07 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 Canonical Ltd
+# Copyright (C) 2007, 2009 Canonical Ltd
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -34,11 +34,12 @@
         tree = self.make_branch_and_tree('.')
         tree.commit('hallelujah')
         out, err = self.run_bzr('check')
+        # the root directory may be in the texts for rich root formats
         self.assertContainsRe(err, r"^Checking working tree at '.*'\.\n"
                                    r"Checking repository at '.*'\.\n"
                                    r"checked repository.*\n"
                                    r"     1 revisions\n"
-                                   r"     0 file-ids\n"
+                                   r"     [01] file-ids\n"
                                    r"     0 unique file texts\n"
                                    r"     0 repeated file texts\n"
                                    r"     0 unreferenced text versions\n"
@@ -59,7 +60,7 @@
         self.assertContainsRe(err, r"^Checking repository at '.*'\.\n"
                                    r"checked repository.*\n"
                                    r"     1 revisions\n"
-                                   r"     0 file-ids\n"
+                                   r"     [01] file-ids\n"
                                    r"     0 unique file texts\n"
                                    r"     0 repeated file texts\n"
                                    r"     0 unreferenced text versions$")




More information about the bazaar-commits mailing list