summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snapshot.rc')
-rwxr-xr-xtests/snapshot.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index a1657162fd4..5186b77fe04 100755
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -385,6 +385,12 @@ function snap_config()
$cli_index snapshot config | grep "^$var" | sed 's/.*: //'
}
+function check_if_snapd_exist() {
+ local pid
+ pid=$(ps aux | grep "snapd" | grep -v grep | awk '{print $2}')
+ if [ -n "$pid" ]; then echo "Y"; else echo "N"; fi
+}
+
case $OSTYPE in
NetBSD)
echo "Skip test on LVM which is not available on NetBSD" >&2