summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2015-05-04 14:19:36 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-04 18:51:18 -0700
commit2d3bfc6b53974c80c347d1285b6a5a7cd60d7a13 (patch)
tree9373ad2430d9728a15924c957d999ac252da83c7 /tests/snapshot.rc
parent80972fd5923b05f3bddd57c5b98dc5a53e9d1edf (diff)
snapshot/uss: fix regression failure in bug-1162498.t
.snaps seems to take some time, before it is available based on the state of the system. Using EXPECT_WITHIN instead of TEST to check the contents of .snaps, hence giving it some time to come up. Change-Id: Iac166500d5a09ba8bab00d994c27a9ad0a01b9c3 BUG: 1218120 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/10518 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
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"