From f17c3ac587392bd1a9219a2fa33991af5c8be16a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Oct 2011 09:59:43 +0100 Subject: [PATCH] Skip guestmount tests if no /dev/fuse. Cherry picked from commit cf4cc1143393d607a7fb4cdbee1434544237d5d4 and modified for libguestfs-1.12 branch which only has guestmount. --- fuse/test-fuse.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.8.3.1