From b8d5fd2b88db7e18a10e57a0edf1a41eda4f5314 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Thu, 24 Jan 2013 11:39:48 +0530 Subject: glusterfs : Moved option files, and statedumps from /tmp Change-Id: Ibdede396c4d6859225937316b7a59a661bcaf9f5 BUG: 764890 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/4422 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-797171.t | 14 +++++++------- tests/bugs/bug-858215.t | 4 ++-- tests/include.rc | 1 + tests/volume.rc | 6 +++--- 4 files changed, 13 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/bugs/bug-797171.t b/tests/bugs/bug-797171.t index d5603676b..a1b28d9ff 100755 --- a/tests/bugs/bug-797171.t +++ b/tests/bugs/bug-797171.t @@ -26,18 +26,18 @@ rm -f $M0/*; pid_file=$(ls /var/lib/glusterd/vols/$V0/run); brick_pid=$(cat /var/lib/glusterd/vols/$V0/run/$pid_file); -mkdir /tmp/statedump_tmp/; -echo "path=/tmp/statedump_tmp" > /tmp/glusterdump.options; -echo "all=yes" >> /tmp/glusterdump.options; +mkdir $statedumpdir/statedump_tmp/; +echo "path=$statedumpdir/statedump_tmp" > $statedumpdir/glusterdump.options; +echo "all=yes" >> $statedumpdir/glusterdump.options; TEST $CLI volume statedump $V0 history; -file_name=$(ls /tmp/statedump_tmp); -TEST grep "xlator.debug.trace.history" /tmp/statedump_tmp/$file_name; +file_name=$(ls $statedumpdir/statedump_tmp); +TEST grep "xlator.debug.trace.history" $statedumpdir/statedump_tmp/$file_name; TEST umount $M0 -rm -rf /tmp/statedump_tmp; -rm -f /tmp/glusterdump.options; +rm -rf $statedumpdir/statedump_tmp; +rm -f $statedumpdir/glusterdump.options; cleanup; diff --git a/tests/bugs/bug-858215.t b/tests/bugs/bug-858215.t index c93ff8b97..aee7d5fcb 100755 --- a/tests/bugs/bug-858215.t +++ b/tests/bugs/bug-858215.t @@ -55,7 +55,7 @@ do done dump_dir='/tmp/gerrit_glusterfs' -cat >/tmp/glusterdump.options <$statedumpdir/glusterdump.options </dev/null + rm -f $statedumpdir/glusterdump.$client_pid.dump.* 2>/dev/null kill -USR1 $client_pid #Wait till the statedump is generated sleep 1 - fname=$(ls /tmp | grep -E "glusterdump.$client_pid.dump.*") - echo /tmp/$fname + fname=$(ls $statedumpdir | grep -E "glusterdump.$client_pid.dump.*") + echo $statedumpdir/$fname } function generate_mount_statedump { -- cgit