Skip to content

Commit

Permalink
Set $HOME for selftests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Oct 24, 2006
1 parent a153adf commit 2eb10ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ test_done () {
# t/ subdirectory and are run in trash subdirectory.
PATH=$(pwd)/..:$PATH
GIT_EXEC_PATH=$(pwd)/..
export PATH GIT_EXEC_PATH
HOME=$(pwd)/trash
export PATH GIT_EXEC_PATH HOME

# Similarly use ../compat/subprocess.py if our python does not
# have subprocess.py on its own.
Expand Down

0 comments on commit 2eb10ac

Please sign in to comment.