]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: refactor test_null_04 into separate functions
authorMing Lei <ming.lei@redhat.com>
Thu, 29 Jan 2026 16:19:55 +0000 (00:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 13:36:41 +0000 (06:36 -0700)
commit130975353b1548d76aa9790a4ac7e74bd2a37221
treed142de81f751c7fe7ae6365da996f69ba6b3dff8
parent7a30d3dfea4a455d1109d5258fe332f2157071ba
selftests: ublk: refactor test_null_04 into separate functions

Encapsulate each test case in its own function that creates the
device, runs checks, and deletes only that device. This avoids
calling _cleanup_test multiple times.

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