]> arthur.barton.de Git - bup.git/commit
Compute exact sizes via t/data-size in test-gc.sh
authorRob Browning <rlb@defaultvalue.org>
Tue, 24 May 2016 00:15:30 +0000 (19:15 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 24 May 2016 23:13:56 +0000 (18:13 -0500)
commitf5edecf2297433cd319dcc29e8dcf12f3c2f3b08
tree4d75e073afce27d019cfba268e7d6f2b96567894
parent873c173b567d82c9bbea1a6811519f6f6b4e1cab
Compute exact sizes via t/data-size in test-gc.sh

Add a t/data-size helper that computes the total data size of all named
paths and use it instead of du in test-gc.sh to determine the
before/after repository sizes.

This should fix spurious test failures on filesystems with a large block
size.  (Observed on ppc64el and powerpc tmpfs filesystems.)

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/data-size [new file with mode: 0755]
t/test-gc.sh