blackbox.test_check fails in 2a format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned |
Bug Description
Some blackbox check tests fail like this:
test: bzrlib.
failure: bzrlib.
RemoteException: Traceback (most recent call last):
File "/home/
self.
AssertionError: pattern "^Checking working tree at '.*'\.\nChecking repository at '.*'\.\nchecked repository.*\n 1
revisions\n 0 file-ids\n 0 unique file texts\n 0 repeated file texts\n 0 unreferenced text versions\nCh
ecking branch at '.*'\.\nchecked branch.*\n$" not found in
"""\
Checking working tree at 'file:/
it_tree/work/'.
Checking repository at 'file:/
_tree/work/'.
checked repository <bzrlib.
_check.
1 revisions
1 file-ids
0 unique file texts
0 repeated file texts
0 unreferenced text versions
Checking branch at 'file:/
e/work/'.
checked branch file://
k/ format Branch format 7
"""
]
test: bzrlib.
failure: bzrlib.
RemoteException: Traceback (most recent call last):
File "/home/
self.
AssertionError: pattern "^Checking repository at '.*'\.\nchecked repository.*\n 1 revisions\n 0 file-ids\n
0 unique file texts\n 0 repeated file texts\n 0 unreferenced text versions$" not found in
"""\
Checking repository at 'file:/
/work/'.
checked repository <bzrlib.
_check.
1 revisions
1 file-ids
0 unique file texts
0 repeated file texts
0 unreferenced text versions
"""
It may be the problem is that they don't expect to see the root node.
Related branches
- Robert Collins (community): Approve
- Diff: 49 lines
Changed in bzr: | |
status: | Fix Committed → Fix Released |
The specific difference, amongst that fairly unreadable regexp and output, is that this reports 1 file id but the test expects 0.
This value comes from _VersionedFileC hecker. check_file_ version_ parents; it's the number of unique file ids in the text_index.