summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}