]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: vstart_wrapper.sh run tests in $TMPDIR
authorKefu Chai <kchai@redhat.com>
Tue, 5 Jul 2016 12:52:27 +0000 (20:52 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 7 Jul 2016 04:11:05 +0000 (12:11 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/vstart_wrapper.sh

index 5c5a3501e9285e16548924161e0f25dff2a4ea61..da9cf956e33aa3e2288d06feca03fe3d2d36a01f 100755 (executable)
@@ -19,7 +19,7 @@
 source $CEPH_ROOT/qa/workunits/ceph-helpers.sh
 
 export CEPH_VSTART_WRAPPER=1
-export CEPH_DIR="$PWD/testdir/test-$CEPH_PORT"
+export CEPH_DIR="${TMPDIR:-$PWD}/testdir/test-$CEPH_PORT"
 export CEPH_DEV_DIR="$CEPH_DIR/dev"
 export CEPH_OUT_DIR="$CEPH_DIR/out"