mirror of https://github.com/borgbackup/borg.git
fixup: tests
This commit is contained in:
parent
2493598eef
commit
835fede85f
|
@ -3325,13 +3325,9 @@ class ArchiverCorruptionTestCase(ArchiverTestCaseBase):
|
||||||
def test_cache_files(self):
|
def test_cache_files(self):
|
||||||
self.cmd('create', self.repository_location + '::test', 'input')
|
self.cmd('create', self.repository_location + '::test', 'input')
|
||||||
self.corrupt(os.path.join(self.cache_path, 'files'))
|
self.corrupt(os.path.join(self.cache_path, 'files'))
|
||||||
|
out = self.cmd('create', self.repository_location + '::test1', 'input')
|
||||||
if self.FORK_DEFAULT:
|
# borg warns about the corrupt files cache, but then continues without files cache.
|
||||||
out = self.cmd('create', self.repository_location + '::test1', 'input', exit_code=2)
|
assert 'files cache is corrupted' in out
|
||||||
assert 'failed integrity check' in out
|
|
||||||
else:
|
|
||||||
with pytest.raises(FileIntegrityError):
|
|
||||||
self.cmd('create', self.repository_location + '::test1', 'input')
|
|
||||||
|
|
||||||
def test_chunks_archive(self):
|
def test_chunks_archive(self):
|
||||||
self.cmd('create', self.repository_location + '::test1', 'input')
|
self.cmd('create', self.repository_location + '::test1', 'input')
|
||||||
|
|
Loading…
Reference in New Issue