X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=t%2Ftest.sh;h=4d65f26d3484df59cdfffd1620373412022640ba;hp=64ff596653abeb29f71cb3bd2216ecb4c69a8469;hb=51691034c6e0d23c557e4b57ed43e35c34a8ef5b;hpb=0c9ebc5ff598ad64f073b715daa528df8745262e diff --git a/t/test.sh b/t/test.sh index 64ff596..4d65f26 100755 --- a/t/test.sh +++ b/t/test.sh @@ -473,7 +473,7 @@ WVPASS bup save -n compression -0 --strip $TOP/Documentation # is harmless there.) WVPASSEQ "$(bup ls compression/latest/ | sort)" \ "$(ls $TOP/Documentation | grep -v '^\.' | sort)" -COMPRESSION_0_SIZE=$(du -B 1024 -s $D | cut -f1) +COMPRESSION_0_SIZE=$(du -k -s $D | cut -f1) D=compression9.tmp export BUP_DIR="$TOP/$D/.bup" @@ -483,7 +483,7 @@ WVPASS bup init WVPASS bup index $TOP/Documentation WVPASS bup save -n compression -9 --strip $TOP/Documentation WVPASSEQ "$(bup ls compression/latest/ | sort)" "$(ls $TOP/Documentation | sort)" -COMPRESSION_9_SIZE=$(du -B 1024 -s $D | cut -f1) +COMPRESSION_9_SIZE=$(du -k -s $D | cut -f1) WVPASS [ "$COMPRESSION_9_SIZE" -lt "$COMPRESSION_0_SIZE" ]