mirror of https://github.com/borgbackup/borg.git
check --repair: test if shadow index is recreated
still failing here, because it is not.
This commit is contained in:
parent
5d28992b51
commit
7892e4212b
|
@ -1061,6 +1061,15 @@ def test_hints_persistence(repository):
|
|||
assert compact_expected == repository.compact
|
||||
del repository.segments[2] # ignore the segment created by put(H(42), ...)
|
||||
assert segments_expected == repository.segments
|
||||
with reopen(repository) as repository:
|
||||
check(repository, repository.path, repair=True)
|
||||
with reopen(repository) as repository:
|
||||
repository.put(H(42), fchunk(b"foobar")) # this will call prepare_txn() and load the hints data
|
||||
assert shadow_index_expected == repository.shadow_index
|
||||
# sizes do not match, with vs. without header?
|
||||
# assert compact_expected == repository.compact
|
||||
del repository.segments[2] # ignore the segment created by put(H(42), ...)
|
||||
assert segments_expected == repository.segments
|
||||
|
||||
|
||||
def test_hints_behaviour(repository):
|
||||
|
|
Loading…
Reference in New Issue