From: Richard W.M. Jones Date: Mon, 17 Oct 2011 08:59:43 +0000 (+0100) Subject: Skip guestmount and virt-sysprep tests if no /dev/fuse. X-Git-Tag: 1.13.22~13 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=cf4cc1143393d607a7fb4cdbee1434544237d5d4;p=libguestfs.git Skip guestmount and virt-sysprep tests if no /dev/fuse. --- diff --git a/clone/test-virt-sysprep.sh b/clone/test-virt-sysprep.sh index 632d366..097f416 100755 --- a/clone/test-virt-sysprep.sh +++ b/clone/test-virt-sysprep.sh @@ -19,6 +19,11 @@ export LANG=C set -e +if [ ! -w /dev/fuse ]; then + echo "SKIPPING virt-sysprep test, because there is no /dev/fuse." + exit 0 +fi + rm -f test.img guestfish qemu-img create -f qcow2 -o backing_file=../images/fedora.img test.img diff --git a/fuse/test-fuse.sh b/fuse/test-fuse.sh index cfa277a..7de5211 100755 --- a/fuse/test-fuse.sh +++ b/fuse/test-fuse.sh @@ -20,6 +20,11 @@ unset CDPATH set -e #set -v +if [ ! -w /dev/fuse ]; then + echo "SKIPPING guestmount test, because there is no /dev/fuse." + exit 0 +fi + if [ -z "$top_builddir" ]; then echo "$0: error: environment variable \$top_builddir must be set" exit 1