mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
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).
This commit is contained in:
parent
fad0c3b00b
commit
f30200a429
1 changed files with 2 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue