autotest: remove support for $CEPH_DIR
Now that we have scripts that work with the standalone 'ceph' utility, drop support for the previous hard-coded Ceph source path. Change-Id: I6d8db999e4fc33075dfafd9ba3734f95ad0f9351 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/373410 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
94efdd3fdd
commit
b89c1b985b
@ -245,14 +245,7 @@ function start_iscsi_service() {
|
||||
}
|
||||
|
||||
function rbd_setup() {
|
||||
export CEPH_DIR=/home/sys_sgsw/ceph/build
|
||||
|
||||
if [ -d $CEPH_DIR ]; then
|
||||
export RBD_POOL=rbd
|
||||
export RBD_NAME=foo
|
||||
(cd $CEPH_DIR && ../src/vstart.sh -d -n -x -l)
|
||||
/usr/local/bin/rbd create $RBD_NAME --size 1000
|
||||
elif hash ceph; then
|
||||
if hash ceph; then
|
||||
export RBD_POOL=rbd
|
||||
export RBD_NAME=foo
|
||||
(cd $rootdir/scripts/ceph && ./start.sh)
|
||||
@ -261,9 +254,7 @@ function rbd_setup() {
|
||||
}
|
||||
|
||||
function rbd_cleanup() {
|
||||
if [ -d $CEPH_DIR ]; then
|
||||
(cd $CEPH_DIR && ../src/stop.sh || true)
|
||||
elif hash ceph; then
|
||||
if hash ceph; then
|
||||
(cd $rootdir/scripts/ceph && ./stop.sh || true)
|
||||
fi
|
||||
}
|
||||
|
@ -5,13 +5,8 @@ rootdir=$(readlink -f $testdir/../../..)
|
||||
source $rootdir/scripts/autotest_common.sh
|
||||
source $rootdir/test/iscsi_tgt/common.sh
|
||||
|
||||
if [ -z $CEPH_DIR ] && ! hash ceph; then
|
||||
echo "Ceph directory not defined; skipping RBD tests"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -d $CEPH_DIR ] && ! hash ceph; then
|
||||
echo "Ceph directory not detected on this system; skipping RBD tests"
|
||||
if ! hash ceph; then
|
||||
echo "Ceph not detected on this system; skipping RBD tests"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user