Fix checking multiple modules error in _have_modules()
PATCH 1/1 Fix checking multiple modules error in _have_modules()
Signed-off-by Xiao Liang <[email protected]>
--- common/rc | 2 +- tests/nvme/002 | 2 +- tests/nvme/003 | 2 +- tests/nvme/004 | 2 +- tests/nvme/015 | 2 +- tests/nvme/018 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
common/rc +1 -1
@@ -33,7 +33,7 @@ _have_modules() { local module for module in "$@"; do - if ! modprobe -n -q "$1"; then + if ! modprobe -n -q $module; then missing+=("$module") fi done
tests/nvme/002 +1 -1
@@ -10,7 +10,7 @@ DESCRIPTION="create many subsystems and test discovery" requires() { - _have_program nvme && _have_modules loop nvme-loop && _have_configfs + _have_program nvme && _have_modules loop nvme-loop nvmet && _have_configfs } test() {
tests/nvme/003 +1 -1
@@ -11,7 +11,7 @@ DESCRIPTION="test if we're sending keep-alives to a discovery controller" QUICK=1 requires() { - _have_program nvme && _have_modules loop nvme-loop && _have_configfs + _have_program nvme && _have_modules loop nvme-loop nvmet && _have_configfs } test() {
tests/nvme/004 +1 -1
@@ -12,7 +12,7 @@ DESCRIPTION="test nvme and nvmet UUID NS descriptors" QUICK=1 requires() { - _have_program nvme && _have_modules loop nvme-loop && _have_configfs + _have_program nvme && _have_modules loop nvme-loop nvmet && _have_configfs } test() {
tests/nvme/015 +1 -1
@@ -10,7 +10,7 @@ DESCRIPTION="unit test for NVMe flush for file backed ns" QUICK=1 requires() { - _have_program nvme && _have_modules loop nvme-loop && _have_configfs + _have_program nvme && _have_modules loop nvme-loop nvmet && _have_configfs } test() {
tests/nvme/018 +1 -1
@@ -11,7 +11,7 @@ DESCRIPTION="unit test NVMe-oF out of range access on a file backend" QUICK=1 requires() { - _have_program nvme && _have_modules nvme-loop && _have_modules loop && \ + _have_program nvme && _have_modules loop nvme-loop nvmet && \ _have_configfs }
Signature · 1 line
2.17.2