From f007d46c5a9a4c71211a93bc414f181aef96aef1 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 25 Apr 2018 10:00:20 -0700 Subject: [PATCH] test: disable RBD and PMDK tests if not installed Signed-off-by: Jim Harris Change-Id: Id3152f911a9a1fb4b3ac9d8be56570a665c079f1 Reviewed-on: https://review.gerrithub.io/414281 Tested-by: SPDK Automated Test System Reviewed-by: Dariusz Stojaczyk Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- test/common/autotest_common.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 0f5b07186..18c9493a9 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -21,6 +21,15 @@ if [[ ! -z $1 ]]; then fi fi +# If certain utilities are not installed, preemptively disable the tests +if ! hash ceph; then + SPDK_TEST_RBD=0 +fi + +if ! hash pmempool; then + SPDK_TEST_PMDK=0 +fi + # Set defaults for missing test config options : ${SPDK_BUILD_DOC=1}; export SPDK_BUILD_DOC : ${SPDK_RUN_CHECK_FORMAT=1}; export SPDK_RUN_CHECK_FORMAT