diff options
Diffstat (limited to 'tests/bugs')
-rwxr-xr-x | tests/bugs/bug-797171.t | 14 | ||||
-rwxr-xr-x | tests/bugs/bug-858215.t | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/bugs/bug-797171.t b/tests/bugs/bug-797171.t index d5603676bf8..a1b28d9ff66 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 c93ff8b9725..aee7d5fcb5a 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 <<EOF +cat >$statedumpdir/glusterdump.options <<EOF all=yes path=$dump_dir EOF @@ -76,6 +76,6 @@ TEST $CLI volume delete $V0; TEST ! $CLI volume info $V0; TEST rm -rf $dump_dir; -TEST rm /tmp/glusterdump.options; +TEST rm $statedumpdir/glusterdump.options; cleanup; |