From: David Levine Date: Sun, 14 Aug 2016 17:11:50 +0000 (-0400) Subject: Set HOME in tests if unset, to avoid warning from w3m about not being X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/316068ee3b7105ea802c63b732ee4cfb584a2600 Set HOME in tests if unset, to avoid warning from w3m about not being about to create config directory. (cherry picked from commit 30a9c9b62fa92df289079080eb5ee57d2fda3951) --- diff --git a/test/common.sh.in b/test/common.sh.in index 4635f9c5..144a1bed 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -28,6 +28,13 @@ test -z "$ICONV_ENABLED" && ICONV_ENABLED="@ICONV_ENABLED@" test -z "$OAUTH_SUPPORT" && OAUTH_SUPPORT="@OAUTH_SUPPORT@" test -z "$CURL_USER_AGENT" && CURL_USER_AGENT="@CURL_USER_AGENT@" +#### If w3m is used, HOME needs to be set, assuming default w3m config. +#### So make sure that HOME is set to avoid run-time warning about not +#### being able to create config directory. +test -z "$HOME" && HOME=$MH_TEST_DIR +HOME=$MH_TEST_DIR +export HOME + unset MAILDROP MHBUILD MHCONTEXT MHMTSUSERCONF MHN MHSHOW MHSTORE unset MHLDEBUG MHPDEBUG MHWDEBUG PAGER #### Set LC_ALL in individual tests as needed. Unset these so