summaryrefslogtreecommitdiffstats
path: root/tests/stddirs.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-22 16:41:41 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-22 17:51:36 -0400
commita2af2746c4686201e2e0796fbdfa115d08727b86 (patch)
tree4127a4c813de4f4c91c92b0596b468cceac43a7b /tests/stddirs.sh
parentdd8ac68070176343a8781e67de4bbd6a071bb89d (diff)
downloadbfs-a2af2746c4686201e2e0796fbdfa115d08727b86.tar.xz
tests: Use test-specific scratch directories
Diffstat (limited to 'tests/stddirs.sh')
-rw-r--r--tests/stddirs.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/stddirs.sh b/tests/stddirs.sh
index acc23dc..a51c878 100644
--- a/tests/stddirs.sh
+++ b/tests/stddirs.sh
@@ -136,28 +136,6 @@ make_stddirs() {
make_weirdnames "$TMP/weirdnames"
make_deep "$TMP/deep"
make_rainbow "$TMP/rainbow"
- mkdir "$TMP/scratch"
-}
-
-# Clean whatever was left in the scratch directory
-clean_scratch() {
- if [ -e "$TMP/scratch" ]; then
- # Try to unmount anything left behind
- if ((${#SUDO[@]})) && command -v mountpoint &>/dev/null; then
- for path in "$TMP/scratch"/*; do
- if mountpoint -q "$path"; then
- sudo umount "$path"
- fi
- done
- fi
-
- # Reset any modified permissions
- chmod -R +rX "$TMP/scratch"
-
- rm -rf "$TMP/scratch"
- fi
-
- mkdir "$TMP/scratch"
}
# Clean up temporary directories on exit
@@ -169,8 +147,5 @@ clean_stddirs() {
fi
done
- # In case a test left anything weird in scratch/
- clean_scratch
-
rm -rf "$TMP"
}