]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: Create and set temporary home directory
[notmuch] / test / test-lib.sh
index 7855609248e72d1961cc22e21192b577a901395b..a59d1c1363fbc5964bd0946aa8cfbda7b84d64a9 100755 (executable)
@@ -973,6 +973,13 @@ rm -fr "$test" || {
        exit 1
 }
 
+# A temporary home directory is needed by at least:
+# - emacs/"Sending a message via (fake) SMTP"
+# - emacs/"Reply within emacs"
+# - crypto/emacs_deliver_message
+export HOME="${TMP_DIRECTORY}/home"
+mkdir -p "${HOME}"
+
 MAIL_DIR="${TMP_DIRECTORY}/mail"
 export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
 export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"