Set $HOME for selftests
Set HOME environment variable to test trash directory and export for selftests. This fixes the git-svn selftests with nonexistent or not readable home, as found in at least one automated build system: http://buildd.debian.org/fetch.cgi?&pkg=git-core&ver=1%3A1.4.2.3-2&arch=alpha&stamp=1161537466&file=log Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Gerrit Pape committed
Oct 24, 2006 at 20:00 UTC
2eb10ac7b51c8bb2257e5e2dea85929675de3fd1
1 file changed
+2
-1
t/test-lib.sh
+2
-1
@@ -207,7 +207,8 @@ test_done () {
207
# t/ subdirectory and are run in trash subdirectory.
208
PATH=$(pwd)/..:$PATH
209
GIT_EXEC_PATH=$(pwd)/..
210
-export PATH GIT_EXEC_PATH
210
+HOME=$(pwd)/trash
211
+export PATH GIT_EXEC_PATH HOME
212
213
# Similarly use ../compat/subprocess.py if our python does not
214
# have subprocess.py on its own.