From 1fc9b98a4eb6eda8db30940a8bb07d206e2fa049 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Fri, 19 Apr 2013 13:02:39 +0530 Subject: tests: Fix volume-status test script * The functions now return the aggregated return value instead of just echoing it. * Fixed the shd test loop to use the proper variable * Added 'wait's for nfs and shd services to come online. BUG: 764966 Change-Id: Iedbb5be0d5e50108ed4847d58625ccb093c22251 Original-author: Kaushal M Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/4856 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- tests/volume.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 5b7a38f77..54b6173c5 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -119,6 +119,10 @@ function afr_child_up_status_in_shd { _afr_child_up_status $vol $brick_id generate_shd_statedump } +function nfs_up_status { + gluster volume status | grep "NFS Server" | awk '{print $6}' +} + function glustershd_up_status { gluster volume status | grep "Self-heal Daemon" | awk '{print $6}' } -- cgit