Allow someone to specify scratchbase=FOO for runtests.sh.
authorWayne Davison <wayne@opencoder.net>
Sun, 9 Jan 2022 19:40:41 +0000 (11:40 -0800)
committerWayne Davison <wayne@opencoder.net>
Sun, 9 Jan 2022 19:40:41 +0000 (11:40 -0800)
runtests.sh

index e0236c9ee4022d2ea5a0ea50fff938686805f2c8..5c204dc9a8671d7f855e7ddc1c28313c0dca8b8c 100755 (executable)
@@ -238,7 +238,7 @@ failed=0
 # failure to aid investigation.  We don't remove the testtmp subdir at
 # the end so that it can be configured as a symlink to a filesystem that
 # has ACLs and xattr support enabled (if desired).
-scratchbase="$TOOLDIR"/testtmp
+scratchbase="${scratchbase:-$TOOLDIR}"/testtmp
 echo "    scratchbase=$scratchbase"
 [ -d "$scratchbase" ] || mkdir "$scratchbase"