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 408b5a72a0c..3bdb79b764b 100755 --- a/tests/snapshot.rc +++ b/tests/snapshot.rc @@ -384,3 +384,9 @@ function snap_config() local var=$2 $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 +} |