summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-08-31 05:45:16 +0200
committerVijay Bellur <vbellur@redhat.com>2014-08-31 22:14:00 -0700
commit8b8f6da58926a9ae7e450021e17b0b68d9fea830 (patch)
tree03d957dbf9c281d2810f754c1dc581c36fc894b4 /tests
parent9816fe18e839eb195a6f4482311b65df995b920f (diff)
Regression test portability: LVM
Skip any test involving LVM on NetBSD as LVM is not supported BUG: 1129939 Change-Id: I2237bae1128d1a81047c9ff7f905431156daf8b7 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8556 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/bd.t9
-rwxr-xr-xtests/snapshot.rc9
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/basic/bd.t b/tests/basic/bd.t
index 52c064ee0bc..7e3637492a3 100755
--- a/tests/basic/bd.t
+++ b/tests/basic/bd.t
@@ -71,6 +71,15 @@ function volume_type()
getfattr -n volume.type $M0/. --only-values --absolute-names -e text
}
+case $OSTYPE in
+NetBSD)
+ echo "Skip test on LVM which is not available on NetBSD" >&2
+ exit 0
+ ;;
+*)
+ ;;
+esac
+
TEST glusterd
TEST pidof glusterd
configure
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 408b5a72a0c..a1657162fd4 100755
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -384,3 +384,12 @@ function snap_config()
local var=$2
$cli_index snapshot config | grep "^$var" | sed 's/.*: //'
}
+
+case $OSTYPE in
+NetBSD)
+ echo "Skip test on LVM which is not available on NetBSD" >&2
+ exit 0
+ ;;
+*)
+ ;;
+esac