]> arthur.barton.de Git - bup.git/commitdiff
test-sparse-files: increase the test size for macos/afs
authorRob Browning <rlb@defaultvalue.org>
Sun, 10 Jul 2022 22:44:43 +0000 (17:44 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 Jul 2022 18:18:45 +0000 (13:18 -0500)
When the cirrus tests moved to monterey test-sparse-files started
failing in "sparse file restore --sparse (sparse middle)" because the
restore_size was 28 and so greater than the expected 20.

Guessing that this might just be due to higher fixed-costs, I doubled
the sparse region data_size, and that did allow the tests to pass.
While the diagnosis might or might not be correct, the change
shouldn't materially affect the tests' effectiveness.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
test/ext/test-sparse-files

index d19bf18195c0a7b6eefc2efd7f91013334de97de..2bfd18766d087dc3df0dc4afcd2a207437a8a59b 100755 (executable)
@@ -21,7 +21,7 @@ WVPASS cd "$tmpdir"
 block_size=$(bup-cfg-py -c \
   "import os; print(getattr(os.stat('.'), 'st_blksize', 0)) or $mb * 3") \
     || exit $?
-data_size=$((block_size * 10))
+data_size=$((block_size * 20))
 readonly block_size data_size
 
 WVPASS dd if=/dev/zero of=test-sparse-probe seek="$data_size" bs=1 count=1