[PATCH blktests v4 5/6] srp/rc: allow test with built-in sd_mod and sg drivers

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

 



The srp test group can be executed with built-in sd_mod and sg drivers.
Check the drivers with _have_driver() in place of _have_modules.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
---
 tests/srp/rc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/srp/rc b/tests/srp/rc
index 94ee97c..13dddf2 100755
--- a/tests/srp/rc
+++ b/tests/srp/rc
@@ -35,6 +35,8 @@ group_requires() {
 		SKIP_REASONS+=("LIO must be unloaded before the SRP tests are run")
 		return
 	fi
+	_have_driver sd_mod
+	_have_driver sg
 	required_modules=(
 		dm_multipath
 		dm_queue_length
@@ -51,9 +53,6 @@ group_requires() {
 		scsi_dh_alua
 		scsi_dh_emc
 		scsi_dh_rdac
-		sd_mod
-		sd_mod
-		sg
 		target_core_iblock
 		target_core_mod
 	)
-- 
2.37.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