do not segfault if make_cache_entry failed
[gitweb.git] / t / test-lib.sh
index 6212c46cc1d73695790e7888c0640fe629210abe..e2b106cb6a2337f873a7225670392b376f74c6e7 100644 (file)
@@ -491,7 +491,7 @@ fi
 
 # Test repository
 test="trash directory.$(basename "$0" .sh)"
-remove_trash="$TEST_DIRECTORY/$test"
+test ! -z "$debug" || remove_trash="$TEST_DIRECTORY/$test"
 rm -fr "$test" || {
        trap - exit
        echo >&5 "FATAL: Cannot prepare test area"