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 <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456316
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Tomasz Zawadzki 2019-05-30 04:08:19 -04:00 committed by Ben Walker
parent 6c9b6abf5e
commit bef870c6d0
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -12,7 +12,7 @@ nvmftestinit
if [ ! -d /usr/src/fio ]; then
echo "FIO not available"
exit 0
exit 1
fi
timing_enter fio