From bbf7345adccec7cbcb0a14deca0d499987c5829d Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 8 Feb 2013 13:05:39 +0530 Subject: Tests: Fixes to state-dump gen function Change-Id: I426e04a4e3d402639a052c6b3616157c36fefc56 BUG: 908146 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4484 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/volume.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 2a6ada3e..fe4d8306 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -43,11 +43,11 @@ function generate_statedump { local fpath="" pid=$1 #remove old stale statedumps - rm -f "$statedumpdir/*$pid.dump.*" + rm -f $statedumpdir/*$pid.dump.* kill -USR1 $pid #Wait till the statedump is generated sleep 1 - fname=$(ls $statedumpdir | grep -E "*$pid.dump.*") + fname=$(ls $statedumpdir | grep -E "\.$pid\.dump\.") echo $statedumpdir/$fname } -- cgit