From f30200a4296f972474f9254dc3cba89570cd7bc0 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Oct 2010 10:40:44 -0700 Subject: [PATCH] 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). --- test/test-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" -- 2.43.0