From: Kefu Chai Date: Fri, 15 Sep 2017 03:50:44 +0000 (+0800) Subject: qa: respect $TEMPDIR X-Git-Tag: v13.0.1~852^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c47aa82177bb37f1579e777a7a7806eee601142;p=ceph.git qa: respect $TEMPDIR ceph-disk and ceph-detect-init are build in $TEMPDIR if it's defined. Signed-off-by: Kefu Chai --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 3be6121f6ff3..aef60b6e0584 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -6,7 +6,8 @@ if [ ! -e Makefile -o ! -d bin ]; then 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 diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 583b623a8625..0a6c867dbd61 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -19,7 +19,7 @@ # TIMEOUT=300 PG_NUM=4 -: ${CEPH_BUILD_VIRTUALENV:=/tmp} +CEPH_BUILD_VIRTUALENV=${TMPDIR:-/tmp} if type xmlstarlet > /dev/null 2>&1; then XMLSTARLET=xmlstarlet