From 30c849c1a551e35e6007ebf94364418deae3e587 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 21 Apr 2017 10:15:28 -0700 Subject: [PATCH] test/nvmf/host/fio: skip test if FIO is unavailable Change-Id: I7a0e2d433a995d7815634fb60a970b722aa41dcd Signed-off-by: Daniel Verkamp --- test/nvmf/host/fio.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/nvmf/host/fio.sh b/test/nvmf/host/fio.sh index 0c5b93d72..17732d160 100755 --- a/test/nvmf/host/fio.sh +++ b/test/nvmf/host/fio.sh @@ -14,6 +14,11 @@ if ! rdma_nic_available; then exit 0 fi +if [ ! -d /usr/src/fio ]; then + echo "FIO not available" + exit 0 +fi + timing_enter fio # Start up the NVMf target in another process @@ -26,9 +31,8 @@ waitforlisten $nvmfpid ${RPC_PORT} $rpc_py construct_nvmf_subsystem Direct nqn.2016-06.io.spdk:cnode1 'transport:RDMA traddr:192.168.100.8 trsvcid:4420' '' -p "*" -if [ -d /usr/src/fio ]; then - /usr/src/fio/fio $rootdir/examples/nvme/fio_plugin/example_config.fio --filename="trtype=RDMA adrfam=IPv4 traddr=192.168.100.8 trsvcid=4420 ns=1" -fi +/usr/src/fio/fio $rootdir/examples/nvme/fio_plugin/example_config.fio --filename="trtype=RDMA adrfam=IPv4 traddr=192.168.100.8 trsvcid=4420 ns=1" + sync $rpc_py delete_nvmf_subsystem nqn.2016-06.io.spdk:cnode1