From: Shin'ichiro Kawasaki Date: Tue, 23 Aug 2022 00:11:51 +0000 (+0900) Subject: block/001: use _have_driver() in place of _have_modules() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d1df772ade70072d4cafd6919238502a01d3290d;p=users%2Fsagi%2Fblktests.git block/001: use _have_driver() in place of _have_modules() 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 --- diff --git a/tests/block/001 b/tests/block/001 index 5f05fa8..fb93932 100755 --- a/tests/block/001 +++ b/tests/block/001 @@ -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() {