ZTS: replace all uses of /var/tmp with TEST_BASE_DIR

The operator can override TEST_BASE_DIR by setting its source var
FILEDIR through zfs-tests.sh -d. There were a handful of cases where
this was not honoured.

By default FILEDIR (and so TEST_BASE_DIR) is /var/tmp, so there should
be no functional change if the operator does nothing.

Sponsored-by: https://despairlabs.com/sponsor/
Signed-off-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
This commit is contained in:
Rob Norris
2025-02-14 21:24:41 +11:00
committed by Tony Hutter
parent f65fc98a8c
commit 4afec534cc
6 changed files with 15 additions and 15 deletions
@@ -29,9 +29,9 @@
# home directory.
#
# STRATEGY:
# 1. Change HOME to /var/tmp
# 1. Change HOME to /var/tmp (TEST_BASE_DIR)
# 2. Make a simple script that echoes a key value pair
# in /var/tmp/.zpool.d
# in $HOME/.zpool.d
# 3. Make sure it can be run with -c
# 4. Remove the script we created
@@ -29,9 +29,9 @@
# home directory.
#
# STRATEGY:
# 1. Change HOME to /var/tmp
# 1. Change HOME to /var/tmp (TEST_BASE_DIR)
# 2. Make a simple script that echoes a key value pair
# in /var/tmp/.zpool.d
# in $HOME/.zpool.d
# 3. Make sure it can be run with -c
# 4. Remove the script we created