]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use $CMAKE_BINARY_DIR for default $CEPH_BUILD_VIRTUALENV 26186/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Jan 2019 11:41:18 +0000 (19:41 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 31 Jan 2019 11:00:04 +0000 (19:00 +0800)
to avoid conflict with other `make check` runs in the same host

See-also: http://tracker.ceph.com/issues/36737
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a8d6b2170dfa0838dad0d1b7b03fc8cf19e4eeff)

Conflicts:
- drop the change to mgr/*/run-tox.sh, as they don't exist in
luminous.
        - apply the change to ceph-disk/run-tox.sh
- apply the change to ceph-helpers.sh: as it set $PATH using
          $TMPDIR, which is set to /tmp if $TMPDIR is empty.

qa/standalone/ceph-helpers.sh
src/CMakeLists.txt
src/ceph-disk/run-tox.sh

index 5e1ce6cb97428d03a0226ee929f3ee5980eaff20..c2d724629ccd14f20a9a50d843581700d36dc552 100755 (executable)
@@ -19,7 +19,7 @@
 #
 TIMEOUT=300
 PG_NUM=4
-TMPDIR=${TMPDIR:-/tmp}
+TMPDIR=${TMPDIR:-${CEPH_BUILD_DIR}}
 CEPH_BUILD_VIRTUALENV=${TMPDIR}
 TESTDIR=${TESTDIR:-${TMPDIR}}
 
index b0837ab1d95ca2b2b49effb82dbd0756493752f8..4ff19154f53b8deb4fea14911c13f2748c492ac1 100644 (file)
@@ -742,7 +742,7 @@ install(TARGETS librados-config DESTINATION bin)
 # virtualenv base directory for ceph-disk and ceph-detect-init
 set(CEPH_BUILD_VIRTUALENV $ENV{TMPDIR})
 if(NOT CEPH_BUILD_VIRTUALENV)
-  set(CEPH_BUILD_VIRTUALENV /tmp)
+  set(CEPH_BUILD_VIRTUALENV ${CMAKE_BINARY_DIR})
 endif()
 
 add_subdirectory(pybind)
index 76935b9e1f7d4418d5d1c68a3ffc582f4fb6271e..5c51d149a15270a5e976233524c3b2a3e269bad9 100755 (executable)
@@ -16,7 +16,7 @@
 #
 
 # run from the ceph-disk directory or from its parent
-: ${CEPH_DISK_VIRTUALENV:=/tmp/ceph-disk-virtualenv}
+: ${CEPH_DISK_VIRTUALENV:=$CEPH_BUILD_DIR/ceph-disk-virtualenv}
 test -d ceph-disk && cd ceph-disk
 
 if [ -e tox.ini ]; then