Skip guestmount and virt-sysprep tests if no /dev/fuse.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Oct 2011 08:59:43 +0000 (09:59 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 17 Oct 2011 08:59:43 +0000 (09:59 +0100)
clone/test-virt-sysprep.sh
fuse/test-fuse.sh

index 632d366..097f416 100755 (executable)
 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
index cfa277a..7de5211 100755 (executable)
@@ -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