summaryrefslogtreecommitdiffstats
path: root/dvm/2059/testcase
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-01-06 12:33:22 +0530
committerRaghavendra Bhat <raghavendrabhat@gluster.com>2012-01-06 12:34:19 +0530
commitf0d1a0db24dcd5d220b9b8906a4b15975f764ad7 (patch)
tree976d1b5af3e342f8c9da64638c33497b5c1b2059 /dvm/2059/testcase
parentfcddfe73952211d9dab696fd48372f3a91638783 (diff)
2059: changes in the testcase in accordance with the changes in statedump for glusterfs
Change-Id: I78ddacc7c485efd385e10a813b4b14a08ec2584f BUG: 2059 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Diffstat (limited to 'dvm/2059/testcase')
-rwxr-xr-xdvm/2059/testcase15
1 files changed, 10 insertions, 5 deletions
diff --git a/dvm/2059/testcase b/dvm/2059/testcase
index 14b83e4..1dae3dd 100755
--- a/dvm/2059/testcase
+++ b/dvm/2059/testcase
@@ -10,13 +10,15 @@ $GLUSTERFSDIR/gluster volume start $VOLNAME 2>/dev/null 1>/dev/null;
$GLUSTERFSDIR/glusterfs -s $(hostname) -p /tmp/client.pid -l /tmp/regr.log --volfile-id=$VOLNAME $FUSE_MOUNT;
-FUSE_PID=`cat /tmp/client.pid`
+sleep 5;
-sleep 5
+FUSE_PID=`cat /tmp/client.pid`;
-kill -USR1 $FUSE_PID
+kill -USR1 $FUSE_PID &>/dev/null;
-OUT=`grep 'xlator.mount.fuse.entry_timeout=1.000000' /tmp/glusterdump.$FUSE_PID | wc -l`
+sleep 1;
+
+OUT=`grep "entry_timeout=1.000000" /tmp/glusterdump.$FUSE_PID.dump | wc -l` &>/dev/null;
if [ "$OUT" -eq "0" ]; then
RET="1";
@@ -24,5 +26,8 @@ else
RET="0";
fi
-rm -f /tmp/glusterdump.$FUSE_PID
+rm -f /tmp/glusterdump.$FUSE_PID.dump &>/dev/null;
+rm -f /tmp/client.pid &>/dev/null;
+rm -f /tmp/regr.log &>/dev/null;
+
exit $RET;