tests: provide $TRASH_DIRECTORY variable
[gitweb.git] / t / test-lib.sh
index 5fdc5d94a20cfcf231bf23590784c5146a3e44bc..e6a7bb1b45e75b7f28a193364a705e51c7f9a154 100644 (file)
@@ -645,7 +645,8 @@ fi
 
 # Test repository
 test="trash directory.$(basename "$0" .sh)"
-test ! -z "$debug" || remove_trash="$TEST_DIRECTORY/$test"
+TRASH_DIRECTORY="$TEST_DIRECTORY/$test"
+test ! -z "$debug" || remove_trash=$TRASH_DIRECTORY
 rm -fr "$test" || {
        GIT_EXIT_OK=t
        echo >&5 "FATAL: Cannot prepare test area"