]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: add _ublk_sleep helper for parallel execution
authorMing Lei <ming.lei@redhat.com>
Sat, 31 Jan 2026 16:23:37 +0000 (00:23 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 21:56:28 +0000 (14:56 -0700)
commit64406dd2f69fe27921c7bf06088871c002cf6186
tree89e573907a4caba29254bce81d024361de6b751d
parentb6bbc3bec19efd557f888d78865b627b80b37a32
selftests: ublk: add _ublk_sleep helper for parallel execution

Add _ublk_sleep() helper function that uses different sleep times
depending on whether tests run in parallel or sequential mode.

Usage: _ublk_sleep <normal_secs> <parallel_secs>

Export JOBS variable from Makefile so test scripts can detect parallel
execution, and use _ublk_sleep in test_part_02.sh to handle the
partition scan delay (1s normal, 5s parallel).

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