[Pkg-libvirt-commits] [libguestfs] 26/66: sparsify: Relax test constraint (RHBZ#1079210).

Hilko Bengen bengen at moszumanska.debian.org
Fri May 9 12:56:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit d0e8561416c160c9e1fb385ede4dee9c9ecb859a
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Apr 8 10:05:34 2014 +0100

    sparsify: Relax test constraint (RHBZ#1079210).
    
    As long as over ~300MB is recovered, declare sparsification to be
    successful in this test.
    
    It looks as if the journal or other metadata takes up a variable
    amount of space after sparsification.
    
    (cherry picked from commit 595bd5022a251a396050c247003ac60328a7facf)
---
 sparsify/test-virt-sparsify-in-place.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sparsify/test-virt-sparsify-in-place.sh b/sparsify/test-virt-sparsify-in-place.sh
index ef99145..e454e79 100755
--- a/sparsify/test-virt-sparsify-in-place.sh
+++ b/sparsify/test-virt-sparsify-in-place.sh
@@ -67,7 +67,11 @@ if [ $size_before -lt 310000 ]; then
     exit 1
 fi
 
-if [ $size_after -gt 15000 ]; then
+# The space we're expecting to recover is 300 + 10 MB, so as long as
+# size_before - size_after > 300000 it shows we have recovered the
+# majority of the file space and sparsification is working.  (RHBZ#1079210)
+
+if [ $((size_before-size_after)) -le 300000 ]; then
     echo "test virt-sparsify --in-place: size_after ($size_after) too large"
     echo "sparsification failed"
     exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list