mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
selftests: ublk: don't show modprobe failure
ublk_drv may be built-in, so don't show modprobe failure, and we do check `/dev/ublk-control` for skipping test if ublk_drv isn't enabled. Reported-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250320013743.4167489-3-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
8764c1a72b
commit
fe2230d921
|
|
@ -64,7 +64,7 @@ _check_root() {
|
|||
|
||||
_remove_ublk_devices() {
|
||||
${UBLK_PROG} del -a
|
||||
modprobe -r ublk_drv
|
||||
modprobe -r ublk_drv > /dev/null 2>&1
|
||||
}
|
||||
|
||||
_get_ublk_dev_state() {
|
||||
|
|
@ -79,7 +79,7 @@ _prep_test() {
|
|||
_check_root
|
||||
local type=$1
|
||||
shift 1
|
||||
modprobe ublk_drv
|
||||
modprobe ublk_drv > /dev/null 2>&1
|
||||
[ "$UBLK_TEST_QUIET" -eq 0 ] && echo "ublk $type: $*"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user