summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2015-05-27 16:59:19 +0530
committerVijay Bellur <vbellur@redhat.com>2015-05-28 02:34:28 -0700
commit2b8fdde926532014f19d850b1321a4c7046dc001 (patch)
treef7dd74b3f6a449ca1d2ff7299826204f199c6d06 /tests/volume.rc
parent7da62fa5600b75a7b3383317119896efae0546c7 (diff)
tests: Await for graph switch before testing open fop count
In performance/open-behind.t, a test for open fop reaching the brick is done by switching off open-behind and performing a read operation. If the read operation is performed before a graph switch, the read happens on the old graph and hence open does not get accounted in the brick. To overcome this EXPECT_WITHIN 10 seconds has now been added to ensure that a graph switch has happened. The read operation happens subsequently after the graph switch. Cleaned up a "No volumes present" message from stderr while doing this. Change-Id: I05f7cbfd1ce51782f5ab778468a980d3732509a2 BUG: 1225077 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/10941 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index bc34b608891..9e01fff687d 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -512,6 +512,12 @@ function cleanup_georep {
$CLI volume geo-rep $GMV0 $H0::$GSV0 delete
}
+function num_graphs
+{
+ local mountpoint=$1
+ echo `ls $mountpoint/.meta/graphs/ | grep -v active | wc -l`
+}
+
function get_aux()
{
##Check if a auxiliary mount is there