From 424189775e847b5dda223434f7ec4e0a98938822 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Mon, 4 May 2015 14:19:36 +0530 Subject: 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: 1218576 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/10518 Tested-by: Gluster Build System Reviewed-by: Rajesh Joseph Reviewed-by: Pranith Kumar Karampuri Reviewed-on: http://review.gluster.org/10561 --- tests/snapshot.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/snapshot.rc') 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" -- cgit