summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snapshot.rc')
-rw-r--r--tests/snapshot.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index d5332377ede..7fe9b39cd7c 100644
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -16,6 +16,10 @@ function init_n_bricks() {
done
}
+count_snaps () {
+ ls $1/.snaps | wc -l
+}
+
function init_lvm() {
if [ "$1" == "" ]; then
echo "Error: Invalid argument supplied"