]> www.infradead.org Git - nvme.git/commit
selftests: ublk: move creating UBLK_TMP into _prep_test()
authorMing Lei <ming.lei@redhat.com>
Sat, 12 Apr 2025 02:30:29 +0000 (10:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Apr 2025 01:32:18 +0000 (19:32 -0600)
commit3bf540609cab0402a7c3e40c1425532f3376318a
treeff451127d83a71a919b0540b635634c8e26632c3
parent2f9a30bd16643d842da0921dc37bf00c750b0a8b
selftests: ublk: move creating UBLK_TMP into _prep_test()

test may exit early because of missing program or not having required
feature before calling _prep_test(), then $UBLK_TMP isn't cleaned.

Fix it by moving creating $UBLK_TMP into _prep_test(), any resources
created since _prep_test() will be cleaned by _cleanup_test().

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250412023035.2649275-14-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_common.sh