summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-06-23 13:24:23 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-06-25 01:18:47 -0400
commit03737127f63ea0f8a75305f3f06c83e715eaa1c2 (patch)
tree031445c181e70cce2af4ae192c3907fd44df5360
parentd16f92335fb7550d67e95a64e3d836c1ddbf0b40 (diff)
downloadbfs-03737127f63ea0f8a75305f3f06c83e715eaa1c2.tar.xz
tests: Qualify the path to $TMP/scratch
-rwxr-xr-xtests.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 65d22ee..af343a1 100755
--- a/tests.sh
+++ b/tests.sh
@@ -691,7 +691,9 @@ function cleanup() {
done
# In case a test left anything weird in scratch/
- chmod -R +rX scratch
+ if [ -e "$TMP"/scratch ]; then
+ chmod -R +rX "$TMP"/scratch
+ fi
rm -rf "$TMP"
}