[PATCH blktests] nvme/039: avoid module loads for various transport types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The test case nvme/039 does not depend on nvme transport type and does
not require modules for the transport types. The _nvme_requires call in
requires() loads the modules and those modules are left unloaded after
the test case run. This causes failures of following nvmeof-mp test runs
with message:

  modprobe: FATAL: Module nvmet is in use.

To avoid the unnecessary module loads, remove _nvme_requires call.
Instead, just check existence of nvme command.

Fixes: 9accb5f86670 ("tests/nvme: add tests for error logging")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
---
 tests/nvme/039 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/nvme/039 b/tests/nvme/039
index 9ed5059..85827fa 100755
--- a/tests/nvme/039
+++ b/tests/nvme/039
@@ -13,7 +13,7 @@ DESCRIPTION="test error logging"
 QUICK=1
 
 requires() {
-	_nvme_requires
+	_have_program nvme
 	_have_kernel_option FAULT_INJECTION && \
 	    _have_kernel_option FAULT_INJECTION_DEBUG_FS
 }
-- 
2.36.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux