From: Carl Worth Date: Wed, 27 Oct 2010 17:40:44 +0000 (-0700) Subject: test: Set alternate HOME during tests. X-Git-Tag: 0.4~61 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f30200a4296f972474f9254dc3cba89570cd7bc0;p=obsolete%2Fnotmuch-old test: Set alternate HOME during tests. We set the HOME environment variable to the test directory to avoid the tests relying on any configuration files from the test author's own home directory, (such as ${HOME}/.emacs or similar). --- diff --git a/test/test-lib.sh b/test/test-lib.sh index d9bb2541..28d14ef9 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -844,7 +844,8 @@ rm -fr "$test" || { } MAIL_DIR="${TMP_DIRECTORY}/mail" -export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config" +export HOME="${TMP_DIRECTORY}" +export NOTMUCH_CONFIG="${HOME}/notmuch-config" mkdir -p "${test}" mkdir -p "${MAIL_DIR}"