diff --git a/t/test-lib.sh b/t/test-lib.sh
index 70ea7e089e21b1619d85b6ccfe9e70b8f11421ff..e2b106cb6a2337f873a7225670392b376f74c6e7 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
# we will leave things as they are.
say_color pass "passed all $msg"
+
+ test -d "$remove_trash" &&
+ cd "$(dirname "$remove_trash")" &&
+ rm -rf "$(basename "$remove_trash")"
+
exit 0 ;;
*)
. ../GIT-BUILD-OPTIONS
# Test repository
-test="trash directory"
+test="trash directory.$(basename "$0" .sh)"
+test ! -z "$debug" || remove_trash="$TEST_DIRECTORY/$test"
rm -fr "$test" || {
trap - exit
echo >&5 "FATAL: Cannot prepare test area"