]> www.infradead.org Git - users/hch/blktests.git/commitdiff
srp/rc: allow test with built-in sd_mod and sg drivers
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 23 Aug 2022 00:11:52 +0000 (09:11 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 29 Aug 2022 23:52:54 +0000 (08:52 +0900)
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@wdc.com>
tests/srp/rc

index 94ee97cd6d978658f0faf5880295d952ee2f288a..13dddf250ee327e2fe1032493488cd7fc8955477 100755 (executable)
@@ -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
        )