ceph-disk and ceph-detect-init are build in $TEMPDIR if it's defined.
Signed-off-by: Kefu Chai <kchai@redhat.com>
exit 1
fi
-if [ ! -d /tmp/ceph-disk-virtualenv -o ! -d /tmp/ceph-detect-init-virtualenv ]; then
+TEMP_DIR=${TMPDIR:-/tmp}
+if [ ! -d $TEMP_DIR/ceph-disk-virtualenv -o ! -d $TEMP_DIR/ceph-detect-init-virtualenv ]; then
echo '/tmp/*-virtualenv directories not built. Please run "make check" first.'
exit 1
fi
#
TIMEOUT=300
PG_NUM=4
-: ${CEPH_BUILD_VIRTUALENV:=/tmp}
+CEPH_BUILD_VIRTUALENV=${TMPDIR:-/tmp}
if type xmlstarlet > /dev/null 2>&1; then
XMLSTARLET=xmlstarlet