]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fstests: stop using /tmp directly
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 21:00:55 +0000 (08:00 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:12:32 +0000 (22:12 +0800)
commit522e213053f8c272b88271860f33289cbe991810
tree831a1d24c444519c7f02d3c9027042cb5009c1f1
parentaa251132be4ec88c1b757eb591a944b29e2383a9
fstests: stop using /tmp directly

Tests should be using $tmp, not /tmp. this causes problems when
multiple tests all use /tmp/foo as a temporary test state file
and then step on each other.

Note that there are some tests that use /tmp to store "test stop"
files for background processes. Those that have proven to be
unreliable at stopping tests when interrupted by ctrl-c are also
updated to track and kill background processes in the cleanup
function.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
17 files changed:
tests/generic/162
tests/generic/163
tests/generic/164
tests/generic/165
tests/generic/166
tests/generic/167
tests/generic/168
tests/generic/170
tests/generic/333
tests/generic/334
tests/generic/373
tests/generic/374
tests/generic/670
tests/generic/671
tests/generic/672
tests/generic/722
tests/xfs/601