diff options
Diffstat (limited to 'tests/snapshot.rc')
-rwxr-xr-x | tests/snapshot.rc | 6 |
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 |