From 7774d4f82ce620abdcc2389ecb9f77a8fbc3070a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 13 Sep 2015 00:36:17 +0200 Subject: [PATCH] ext3 seems to need a bit more space for a sparse file but it is still sparse, just needed some adjustment --- borg/testsuite/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 95df90a0a..d001b5ca3 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -264,7 +264,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): st = os.stat(filename) self.assert_equal(st.st_size, total_len) if sparse_support and hasattr(st, 'st_blocks'): - self.assert_true(st.st_blocks * 512 < total_len / 10) # is input sparse? + self.assert_true(st.st_blocks * 512 < total_len / 9) # is input sparse? self.cmd('init', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') with changedir('output'): @@ -279,7 +279,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): st = os.stat(filename) self.assert_equal(st.st_size, total_len) if sparse_support and hasattr(st, 'st_blocks'): - self.assert_true(st.st_blocks * 512 < total_len / 10) # is output sparse? + self.assert_true(st.st_blocks * 512 < total_len / 9) # is output sparse? def test_unusual_filenames(self): filenames = ['normal', 'with some blanks', '(with_parens)', ]