]> www.infradead.org Git - users/hch/blktests.git/commitdiff
block/001: use _have_driver() in place of _have_modules()
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 23 Aug 2022 00:11:51 +0000 (09:11 +0900)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Mon, 29 Aug 2022 23:52:54 +0000 (08:52 +0900)
The drivers sd_mod and sr_mod do not need to be loadable. Replace the
check with _have_driver() and allow test with built-in modules.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/block/001

index 5f05fa8c380f861f0a39024e2810e13b9c9171a3..fb93932b39c3d67759beac28ae61927a58dd747d 100755 (executable)
@@ -13,7 +13,9 @@ DESCRIPTION="stress device hotplugging"
 TIMED=1
 
 requires() {
-       _have_scsi_debug && _have_modules sd_mod sr_mod
+       _have_scsi_debug
+       _have_driver sd_mod
+       _have_driver sr_mod
 }
 
 stress_scsi_debug() {