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.
#
TIMEOUT=300
PG_NUM=4
-TMPDIR=${TMPDIR:-/tmp}
+TMPDIR=${TMPDIR:-${CEPH_BUILD_DIR}}
CEPH_BUILD_VIRTUALENV=${TMPDIR}
TESTDIR=${TESTDIR:-${TMPDIR}}
# 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)
#
# 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