From 3797a38dc6be83de0783068c98b799f23f3a15a8 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 24 Aug 2020 13:06:39 +0200 Subject: [PATCH] test/nvmf: [multicontroller] Don't wait indefinitely for the controllers Also, replace unexisting pass call with a simple sleep. Change-Id: I5c0197109410df51df3ebe81596b5c0b1b103343 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3915 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- test/nvmf/host/multicontroller.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/nvmf/host/multicontroller.sh b/test/nvmf/host/multicontroller.sh index 1540f296d..b16236a0b 100755 --- a/test/nvmf/host/multicontroller.sh +++ b/test/nvmf/host/multicontroller.sh @@ -43,7 +43,8 @@ $rpc_py -s $bdevperf_rpc_sock bdev_nvme_attach_controller -b NVMe0 -t $TEST_TRAN # wait for the first controller to show up. while ! $rpc_py -s $bdevperf_rpc_sock bdev_nvme_get_controllers | grep -c NVMe; do - pass + ((++bdev_nvme_get_controllers_timeout <= 10)) + sleep 1s done # try to attach to the second port with a different hostsvcid (this should fail).