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: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/372326 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
39240a9e6b
commit
85206ad06e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user