summaryrefslogtreecommitdiffstats
path: root/fuse/test-fuse.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-22 08:41:14 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-22 10:57:47 +0100
commit145f35badfd9ca4a6d9f54f7732566a5e5114876 (patch)
tree08c92122cb693a8270dbe63b60a63d011c4a2880 /fuse/test-fuse.sh
parent6352953ea927819a8ece795d03c4938e657d0a97 (diff)
downloadlibguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.tar.gz
libguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.tar.xz
libguestfs-145f35badfd9ca4a6d9f54f7732566a5e5114876.zip
tests: Add SKIP_TEST_* variables to allow these tests to be skipped.
By setting these variables, we can skip tests that fail on RHEL 5.
Diffstat (limited to 'fuse/test-fuse.sh')
-rwxr-xr-xfuse/test-fuse.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/fuse/test-fuse.sh b/fuse/test-fuse.sh
index 3dac2336..8dc658bb 100755
--- a/fuse/test-fuse.sh
+++ b/fuse/test-fuse.sh
@@ -20,6 +20,11 @@ unset CDPATH
set -e
#set -v
+if [ -n "$SKIP_TEST_FUSE_SH" ]; then
+ echo "$0: test skipped because environment variable is set."
+ exit 0
+fi
+
if [ ! -w /dev/fuse ]; then
echo "SKIPPING guestmount test, because there is no /dev/fuse."
exit 0