diff options
author | Florian Friesdorf <flo@chaoflow.net> | 2011-04-18 19:41:39 +0200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-01 17:46:51 -0700 |
commit | e584c64c5b0788a3b9c1b22f37eb236bb6da7d0d (patch) | |
tree | db631a8d9483f9296e7eabb6262d63df06808d26 /test | |
parent | afdfa5674c84bbb8c0e546384e03a058d317b7a0 (diff) |
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index 78556092..a59d1c13 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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" |