summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
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