mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-29 18:10:59 -04:00
Fix test_sparse_file for solaris
This commit is contained in:
parent
d813775065
commit
b86775ab4f
1 changed files with 3 additions and 2 deletions
|
|
@ -408,8 +408,9 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|||
return repository.id
|
||||
|
||||
def test_sparse_file(self):
|
||||
# no sparse file support on Mac OS X
|
||||
sparse_support = sys.platform != 'darwin'
|
||||
# Mac OS X has no sparse file support
|
||||
# Solaris (ZFS) has sparse file support, but is less predictable about it
|
||||
sparse_support = sys.platform not in ['darwin', 'sunos5']
|
||||
filename = os.path.join(self.input_path, 'sparse')
|
||||
content = b'foobar'
|
||||
hole_size = 5 * (1 << CHUNK_MAX_EXP) # 5 full chunker buffers
|
||||
|
|
|
|||
Loading…
Reference in a new issue