git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
PRPavel Roskin <proski@gnu.org>
Date
Nov 29, 2006, 03:59 UTC
Message-ID
<20061129035925.6118.78329.stgit@dv.roinet.com>

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
Next: Pavel Roskin
Message 1 of 5 in “Set HOME to the test directory to avoid reading ~/.stgitrc”
  1. 1/2 Set HOME to the test directory to avoid reading ~/.stgitrcPavel Roskin, Nov 29, 2006
  2. 2/2 Don't require config file for "stg mail"Pavel Roskin, Nov 29, 2006
  3. Catalin MarinasNov 29, 2006
  4. Pavel RoskinNov 29, 2006
  5. Catalin MarinasNov 30, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.