From: Florian Friesdorf <>

My first patch send to the list, not sure whether done properly.

In the master branch in test/emacs two tests access the build users home
directory, so does emacs_deliver_message in the crypto branch.

I think the tests should not touch the build user's home directory. The
patch creates a directory in the temporary test directory and sets home

In case of a non-existent home directory, the tests are failing without
this patch.

Signed-off-by: Jameson Graef Rollins <jrollins at>
 test/ |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/test/ b/test/
index 922b1ef..6a8cb98 100755
--- a/test/
+++ b/test/
@@ -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}"
 export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
 export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"

Reply via email to