[Pkg-libvirt-commits] [libguestfs] 12/61: virt-sparsify --in-place: remove image if discard is not supported

Hilko Bengen bengen at moszumanska.debian.org
Sat Mar 29 14:36:22 UTC 2014


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

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 483f0e30962ef6a662478dc6f0b13a1852733d4d
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Mon Mar 24 16:59:20 2014 +0100

    virt-sparsify --in-place: remove image if discard is not supported
    
    No point leaving it around if the test has been skipped.
---
 sparsify/test-virt-sparsify-in-place.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sparsify/test-virt-sparsify-in-place.sh b/sparsify/test-virt-sparsify-in-place.sh
index dd32963..ef99145 100755
--- a/sparsify/test-virt-sparsify-in-place.sh
+++ b/sparsify/test-virt-sparsify-in-place.sh
@@ -51,6 +51,7 @@ size_before=$(du -s test-virt-sparsify-in-place.img | awk '{print $1}')
 
 $VG ./virt-sparsify --debug-gc --in-place test-virt-sparsify-in-place.img || {
     if [ "$?" -eq 3 ]; then
+        rm test-virt-sparsify-in-place.img
         echo "$0: discard not supported in virt-sparsify"
         exit 77
     fi

-- 
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