mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Skip guestmount and virt-sysprep tests if no /dev/fuse.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user