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:
Carl Worth 2010-10-27 10:40:44 -07:00
parent fad0c3b00b
commit f30200a429

View file

@ -844,7 +844,8 @@ rm -fr "$test" || {
} }
MAIL_DIR="${TMP_DIRECTORY}/mail" 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 "${test}"
mkdir -p "${MAIL_DIR}" mkdir -p "${MAIL_DIR}"