diff --git a/test/iscsi_tgt/rbd/rbd.sh b/test/iscsi_tgt/rbd/rbd.sh index b6d1eb57cf..d9823470c4 100755 --- a/test/iscsi_tgt/rbd/rbd.sh +++ b/test/iscsi_tgt/rbd/rbd.sh @@ -5,12 +5,12 @@ rootdir=$(readlink -f $testdir/../../..) source $rootdir/scripts/autotest_common.sh source $rootdir/test/iscsi_tgt/common.sh -if [ -z $CEPH_DIR ]; then +if [ -z $CEPH_DIR ] && ! hash ceph; then echo "Ceph directory not defined; skipping RBD tests" exit 0 fi -if [ ! -d $CEPH_DIR ]; then +if [ ! -d $CEPH_DIR ] && ! hash ceph; then echo "Ceph directory not detected on this system; skipping RBD tests" exit 0 fi