mirror of https://github.com/borgbackup/borg.git
fix test_delete
NewCache does not do precise refcounting, thus chunks won't be deleted from the repo at "borg delete" time. "borg check --repair" would remove such chunks IF they are orphans.
This commit is contained in:
parent
86adc04da4
commit
c73f6d4ff3
|
@ -25,9 +25,8 @@ def test_delete(archivers, request):
|
|||
cmd(archiver, "extract", "test.2", "--dry-run")
|
||||
output = cmd(archiver, "delete", "-a", "test.2", "--stats")
|
||||
assert "Original size: -" in output # negative size == deleted data
|
||||
# Make sure all data except the manifest has been deleted
|
||||
with Repository(archiver.repository_path) as repository:
|
||||
assert len(repository) == 1
|
||||
output = cmd(archiver, "rlist")
|
||||
assert output == "" # no archives left!
|
||||
|
||||
|
||||
def test_delete_multiple(archivers, request):
|
||||
|
|
Loading…
Reference in New Issue