summaryrefslogtreecommitdiffstats
path: root/fish/test-mount-local.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-25 15:19:19 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-25 15:21:32 +0100
commitf27770e1412c0dbe652d490791347911aac62b24 (patch)
tree9a517ba7f284655b13b6372829026f05dcdd4d63 /fish/test-mount-local.sh
parent2afa0eeb9040d90fc020c01caa0b24b00e0556ce (diff)
downloadlibguestfs-f27770e1412c0dbe652d490791347911aac62b24.tar.gz
libguestfs-f27770e1412c0dbe652d490791347911aac62b24.tar.xz
libguestfs-f27770e1412c0dbe652d490791347911aac62b24.zip
fish: Allow mount-local test to be skipped with environment variable.
The test uses FUSE, so we need a way to disable it on RHEL 5.
Diffstat (limited to 'fish/test-mount-local.sh')
-rwxr-xr-xfish/test-mount-local.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/fish/test-mount-local.sh b/fish/test-mount-local.sh
index a71db042..c1b3f550 100755
--- a/fish/test-mount-local.sh
+++ b/fish/test-mount-local.sh
@@ -18,6 +18,11 @@
# Test guestfish mount-local / mount-local-run commands.
+if [ -n "$SKIP_TEST_MOUNT_LOCAL_SH" ]; then
+ echo "$0: skipping test because SKIP_TEST_MOUNT_LOCAL_SH is set."
+ exit 0
+fi
+
# Skip if no FUSE.
test -w /dev/fuse || {