From: Richard W.M. Jones Date: Mon, 17 Oct 2011 08:59:43 +0000 (+0100) Subject: Skip guestmount tests if no /dev/fuse. X-Git-Tag: 1.12.8~7 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=f17c3ac587392bd1a9219a2fa33991af5c8be16a;p=libguestfs.git Skip guestmount tests if no /dev/fuse. Cherry picked from commit cf4cc1143393d607a7fb4cdbee1434544237d5d4 and modified for libguestfs-1.12 branch which only has guestmount. --- 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