]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: move test temp files into a sub directory
authorAlexander Atanasov <alex@zazolabs.com>
Thu, 29 Jan 2026 16:19:58 +0000 (00:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 13:36:41 +0000 (06:36 -0700)
commit2feca79ef8df5505b87c00812b9ba263b92c64ed
treed9ea7abd5cadaaa59b04b1b714f6ab862e1e7dc7
parent4e0d293af9e37c735aec574c1e69ed71f81f94b2
selftests: ublk: move test temp files into a sub directory

Create and use a temporary directory for the files created during
test runs. If TMPDIR environment variable is set use it as a base
for the temporary directory path.
TMPDIR=/mnt/scratch make run_tests
and
TMPDIR=/mnt/scratch ./test_generic_01.sh
will place test directory under /mnt/scratch

Signed-off-by: Alexander Atanasov <alex@zazolabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/test_common.sh