From: Yi Zhang Date: Sun, 7 Mar 2021 16:31:42 +0000 (+0800) Subject: tests/srp/rc, tests/nvmeof-mp/rc: add fio check to group_requires X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4bc88ef88a6aaa84b5d45caea5d3f8f75f86447f;p=users%2Fhch%2Fblktests.git tests/srp/rc, tests/nvmeof-mp/rc: add fio check to group_requires Most of the srp and nvmeof-mp tests need fio, we need add fio check before running the tests Reviewed-by: Bart Van Assche Signed-off-by: Yi Zhang --- diff --git a/tests/nvmeof-mp/rc b/tests/nvmeof-mp/rc index 0a12825..dcb2e3c 100755 --- a/tests/nvmeof-mp/rc +++ b/tests/nvmeof-mp/rc @@ -42,7 +42,7 @@ and multipathing has been enabled in the nvme_core kernel module" ) _have_modules "${required_modules[@]}" || return - for p in mkfs.ext4 mkfs.xfs multipath multipathd pidof rdma; do + for p in mkfs.ext4 mkfs.xfs multipath multipathd pidof rdma fio; do _have_program "$p" || return done diff --git a/tests/srp/rc b/tests/srp/rc index 2986bfd..586f007 100755 --- a/tests/srp/rc +++ b/tests/srp/rc @@ -60,7 +60,7 @@ group_requires() { _have_modules "${required_modules[@]}" || return for p in mkfs.ext4 mkfs.xfs multipath multipathd pidof rdma \ - sg_reset; do + sg_reset fio; do _have_program "$p" || return done