]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: add _ublk_del_dev helper function
authorMing Lei <ming.lei@redhat.com>
Sat, 31 Jan 2026 16:23:34 +0000 (00:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 21:56:28 +0000 (14:56 -0700)
commit92734a4f3a7a5449b0c7d0160ba658a2b665c31b
treef5e771b0d8d69c83a894d1284c31fa7304c5a1f2
parent842b6520e579b8bd7d6ea09937e1fb7729cce1c5
selftests: ublk: add _ublk_del_dev helper function

Add _ublk_del_dev() to delete a specific ublk device by ID and
use it in all test scripts instead of calling UBLK_PROG directly.

Also remove unused _remove_ublk_devices() function.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_common.sh
tools/testing/selftests/ublk/test_generic_16.sh
tools/testing/selftests/ublk/test_null_04.sh
tools/testing/selftests/ublk/test_part_02.sh