mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: Create and set temporary home directory
In the master branch in test/emacs two tests access the build users home directory, so does emacs_deliver_message in the crypto branch. The tests should not touch the build user's home directory. The patch creates a directory in the temporary test directory and sets home accordingly. In case of a non-existent home directory, the tests are failing without this patch. Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>
This commit is contained in:
parent
afdfa5674c
commit
e584c64c5b
1 changed files with 7 additions and 0 deletions
|
@ -973,6 +973,13 @@ rm -fr "$test" || {
|
||||||
exit 1
|
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"
|
MAIL_DIR="${TMP_DIRECTORY}/mail"
|
||||||
export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
|
export GNUPGHOME="${TMP_DIRECTORY}/gnupg"
|
||||||
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
||||||
|
|
Loading…
Reference in a new issue