summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-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"
}