]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: track created devices for per-test cleanup
authorMing Lei <ming.lei@redhat.com>
Sat, 31 Jan 2026 16:23:35 +0000 (00:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 21:56:28 +0000 (14:56 -0700)
commit2021e6109de3e97adfce262c40a657ff206ef495
tree060fe97932f7f3bb851a8de7027f717b9d442758
parent92734a4f3a7a5449b0c7d0160ba658a2b665c31b
selftests: ublk: track created devices for per-test cleanup

Track device IDs in UBLK_DEVS array when created. Update
_cleanup_test() to only delete devices created by this test
instead of using 'del -a' which removes all devices.

This prepares for running tests concurrently where each test
should only clean up its own devices.

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