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: Jim Harris <james.r.harris@intel.com>
Change-Id: I1fa87e8b02f6e6ed62c75f07471d93ce84da30c2
This commit is contained in:
Jim Harris 2017-05-10 15:20:06 -07:00
parent b499ae64ad
commit f2c8d0dc11

View File

@ -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