Skip guestmount and virt-sysprep tests if no /dev/fuse.

This commit is contained in:
Richard W.M. Jones
2011-10-17 09:59:43 +01:00
parent 8cf06ddcdd
commit cf4cc11433
2 changed files with 10 additions and 0 deletions

View File

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

View File

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