]> git.michaelhowe.org Git - packages/b/bup.git/commit
test-compression.sh: use "tar ... | wc -c" instead of du.
authorRob Browning <rlb@defaultvalue.org>
Mon, 17 Feb 2014 18:39:05 +0000 (12:39 -0600)
committerRob Browning <rlb@defaultvalue.org>
Mon, 17 Feb 2014 18:46:46 +0000 (12:46 -0600)
commitebc533cb525eb40fa5506cfdcadb788153762246
tree371bdbd8c3073b43f7c13f9f4708e68c1f9937ea
parent30d9027cc5444f038d38927219dc59e3b69fa219
test-compression.sh: use "tar ... | wc -c" instead of du.

This test was failing on a ZFS system with compression enabled because
du wasn't summing the actual file sizes.  To fix that, use tar/wc so
that we'll calculate the actual tree size without having to worry
about the portability of du's --apparent-size argument.

Thanks to Björn Seifert <seifert@oern.de> for reporting the problem
and Greg Troxel <gdt@lexort.com> for suggesting this fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test-compression.sh