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 cddbb49584a..6ca276d194b 100755 --- a/tests/snapshot.rc +++ b/tests/snapshot.rc @@ -391,6 +391,12 @@ function check_if_snapd_exist() { 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 |