From: Kefu Chai Date: Fri, 15 Jul 2016 08:20:22 +0000 (+0800) Subject: qa/workunits/cephtool/test.sh: s/TMPDIR/TEMP_DIR/ X-Git-Tag: ses5-milestone5~383^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c1b4560228ba18ffc0e17d2d74f00dcdb889b50;p=ceph.git qa/workunits/cephtool/test.sh: s/TMPDIR/TEMP_DIR/ this fixes the test failure of ``` 2016-07-12T23:29:40.935 INFO:tasks.workunit.client.0.mira101.stderr:/home/ubuntu/cephtest/workunit.client.0/cephtool/test.sh: line 153: /CEPH_WATCH_9445: Permission denied ``` see http://pulpito.ceph.com/kchai-2016-07-12_23:09:35-rados-wip-kefu-testing2---basic-mira/311333/ it's a regression introduced by e5c262b Signed-off-by: Kefu Chai --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index e6bb452f2ecf..fb2fa6a7253d 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -149,7 +149,7 @@ function ceph_watch_start() whatch_opt=--watch-$1 fi - CEPH_WATCH_FILE=${TMPDIR}/CEPH_WATCH_$$ + CEPH_WATCH_FILE=${TEMP_DIR}/CEPH_WATCH_$$ ceph $whatch_opt > $CEPH_WATCH_FILE & CEPH_WATCH_PID=$! @@ -1760,7 +1760,7 @@ function test_mon_crushmap_validation() local map=$TEMP_DIR/map ceph osd getcrushmap -o $map - local crushtool_path="${TMPDIR}/crushtool" + local crushtool_path="${TEMP_DIR}/crushtool" touch "${crushtool_path}" chmod +x "${crushtool_path}" local crushtool_path_old=`ceph-conf --show-config-value crushtool`