summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-02-08 13:05:39 +0530
committerAnand Avati <avati@redhat.com>2013-02-08 11:40:03 -0800
commitbbf7345adccec7cbcb0a14deca0d499987c5829d (patch)
treeefa0ab2062c974dab1de2e554b8c0daa172a15e8 /tests/volume.rc
parentbda72009430ed76dc00433346b33be25c2fe2566 (diff)
Tests: Fixes to state-dump gen function
Change-Id: I426e04a4e3d402639a052c6b3616157c36fefc56 BUG: 908146 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4484 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 2a6ada3e6c8..fe4d8306bc6 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
}