From de76de1e99ab93eba2b14868c347022269cf0f04 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Mon, 18 Dec 2017 09:19:20 -0700 Subject: [PATCH] autotest.sh: only run rbd_setup if SPDK_TEST_RBD is set Change-Id: Ia5148eee639179f53ae15e1edd71e96675d7fe9b Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/392196 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- autotest.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/autotest.sh b/autotest.sh index cb6da0f36..a335c71a7 100755 --- a/autotest.sh +++ b/autotest.sh @@ -71,9 +71,11 @@ timing_enter nvmf_setup rdma_device_init timing_exit nvmf_setup -timing_enter rbd_setup -rbd_setup -timing_exit rbd_setup +if [ $SPDK_TEST_RBD -eq 1 ]; then + timing_enter rbd_setup + rbd_setup + timing_exit rbd_setup +fi ##################### # Unit Tests @@ -173,7 +175,9 @@ if [ $SPDK_TEST_NVML -eq 1 ]; then fi timing_enter cleanup -rbd_cleanup +if [ $SPDK_TEST_RBD -eq 1 ]; then + rbd_cleanup +fi ./scripts/setup.sh reset if [ $SPDK_BUILD_IOAT_KMOD -eq 1 ]; then ./scripts/build_kmod.sh clean