From bef870c6d018d496fb922e4d565a0163ac895701 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Thu, 30 May 2019 04:08:19 -0400 Subject: [PATCH] test/fio: fail the tests when fio is not available When possible we should make sure that no silent failures or skipped tests. Since some of the tests use fio, autotest should fail in those places when it is missing. Change-Id: I97581e2df30a02445b560e3b88d03ce92986d0fd Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456316 Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- test/bdev/blockdev.sh | 3 +++ test/nvmf/host/fio.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/bdev/blockdev.sh b/test/bdev/blockdev.sh index fedbccc08..f6d030684 100755 --- a/test/bdev/blockdev.sh +++ b/test/bdev/blockdev.sh @@ -149,6 +149,9 @@ if [ -d /usr/src/fio ]; then timing_exit fio_trim report_test_completion "bdev_fio" timing_exit fio +else + echo "FIO not available" + exit 1 fi # Create conf file for bdevperf with gpt diff --git a/test/nvmf/host/fio.sh b/test/nvmf/host/fio.sh index c99414ed8..7de9bcc8e 100755 --- a/test/nvmf/host/fio.sh +++ b/test/nvmf/host/fio.sh @@ -12,7 +12,7 @@ nvmftestinit if [ ! -d /usr/src/fio ]; then echo "FIO not available" - exit 0 + exit 1 fi timing_enter fio