summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2014-10-21 07:57:22 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2014-12-18 22:53:03 -0800
commit859cdebc2d2b425fd76f46d598ad59933396b279 (patch)
tree2ee57f4dca095cd15b59b2eec281627ae468d8ca /tests/snapshot.rc
parentdf0ff94a64bd597e61f26a2a56297de7abf80a0f (diff)
USS : Display only the activated snapshots.
Instead of displaying all the snapshots in the uss world, it is better if we display only the activated snapshots. Change-Id: I70d3ec212b62ec15956ae3e826bc4201d8dedd17 BUG: 1170548 Signed-off-by: Sachin Pandit <spandit@redhat.com> Reviewed-on: http://review.gluster.org/8958 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Krishnan Parthasarathi <kparthas@redhat.com> Signed-off-by: Sachin Pandit <spandit@redhat.com> Reviewed-on: http://review.gluster.org/9242 Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'tests/snapshot.rc')
-rwxr-xr-xtests/snapshot.rc16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 16549ec249f..175344ef5f7 100755
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -394,3 +394,19 @@ function check_if_snapd_exist() {
pid=$(ps aux | grep "snapd" | grep -v grep | awk '{print $2}')
if [ -n "$pid" ]; then echo "Y"; else echo "N"; fi
}
+
+# returns number of snapshot being displayed in ".snaps" directory
+function uss_count_snap_displayed() {
+ local path=$1
+ ls $path/.snaps | wc -l
+}
+
+case $OSTYPE in
+NetBSD)
+ echo "Skip test on LVM which is not available on NetBSD" >&2
+ SKIP_TESTS
+ exit 0
+ ;;
+*)
+ ;;
+esac