[PATCH 1/2] Set HOME to the test directory to avoid reading ~/.stgitrc

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>, Catalin Marinas <catalin.marinas@...>
Date: Tuesday, November 28, 2006 - 11:59 pm

This makes the tests more system independent and allows better testing
for "stg mail" command.

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

 t/test-lib.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/t/test-lib.sh b/t/test-lib.sh
index 6339c54..459d5cb 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -193,7 +193,8 @@ test_done () {
 # Test the binaries we have just built.  The tests are kept in
 # t/ subdirectory and are run in trash subdirectory.
 PATH=$(pwd)/..:$PATH
-export PATH
+HOME=$(pwd)/trash
+export PATH HOME
 
 
 # Test repository

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Set HOME to the test directory to avoid reading ..., Pavel Roskin, (Tue Nov 28, 11:59 pm)
[PATCH 2/2] Don't require config file for "stg mail", Pavel Roskin, (Tue Nov 28, 11:59 pm)
Re: [PATCH 2/2] Don't require config file for "stg mail", Catalin Marinas, (Wed Nov 29, 12:29 pm)
Re: [PATCH 2/2] Don't require config file for "stg mail", Catalin Marinas, (Thu Nov 30, 4:32 am)