]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: respect $TEMPDIR
authorKefu Chai <kchai@redhat.com>
Fri, 15 Sep 2017 03:50:44 +0000 (11:50 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Sep 2017 04:19:50 +0000 (12:19 +0800)
ceph-disk and ceph-detect-init are build in $TEMPDIR if it's defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/run-standalone.sh
qa/standalone/ceph-helpers.sh

index 3be6121f6ff3d075f920dbbb36c9f1491df05b9c..aef60b6e05842ad8634c14b170f4c245cfdcfa5e 100755 (executable)
@@ -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
index 583b623a86253d90ae10627f4eb5d85b9238f5b5..0a6c867dbd61d83aee2e2948b4e1fd4762810f6b 100755 (executable)
@@ -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