Commit f2c8d0dc authored by Jim Harris's avatar Jim Harris
Browse files

test/iscsi_tgt: exit rbd.sh if CEPH_DIR not defined



This allows the iscsi_tgt tests to be run more easily
in isolation.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I1fa87e8b02f6e6ed62c75f07471d93ce84da30c2
parent b499ae64
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4,6 +4,11 @@ testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh

if [ -z $CEPH_DIR ]; then
	echo "Ceph directory not defined; skipping RBD tests"
	exit 0
fi

if [ ! -d $CEPH_DIR ]; then
	echo "Ceph directory not detected on this system; skipping RBD tests"
	exit 0