mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-31 20:26:40 +00:00
parent
423ec4ba1e
commit
21742faf26
1 changed files with 3 additions and 7 deletions
|
@ -3331,13 +3331,9 @@ def test_cache_chunks(self):
|
|||
def test_cache_files(self):
|
||||
self.cmd('create', self.repository_location + '::test', 'input')
|
||||
self.corrupt(os.path.join(self.cache_path, 'files'))
|
||||
|
||||
if self.FORK_DEFAULT:
|
||||
out = self.cmd('create', self.repository_location + '::test1', 'input', exit_code=2)
|
||||
assert 'failed integrity check' in out
|
||||
else:
|
||||
with pytest.raises(FileIntegrityError):
|
||||
self.cmd('create', self.repository_location + '::test1', 'input')
|
||||
out = self.cmd('create', self.repository_location + '::test1', 'input')
|
||||
# borg warns about the corrupt files cache, but then continues without files cache.
|
||||
assert 'files cache is corrupted' in out
|
||||
|
||||
def test_chunks_archive(self):
|
||||
self.cmd('create', self.repository_location + '::test1', 'input')
|
||||
|
|
Loading…
Reference in a new issue