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 <kchai@redhat.com>
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=$!
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`