Commit 85206ad0 authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

test/rbd: remove requirement for local ceph directory



Previously, the local ceph directory was the only requirement for
running rbd tests. This patch allows the tests to be run if hash is a
known command.

Change-Id: I176bfc2e1d95f7d6d210c2faa03ff272819fe34b
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/372326


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 39240a9e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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