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/30a9c9b62fa92df289079080eb5ee57d2fda3951?ds=inline;hp=3dee7d930cb47c5aa4c8cb0d4707debd213fefb1 Set HOME in tests if unset, to avoid warning from w3m about not being about to create config directory. --- diff --git a/test/common.sh.in b/test/common.sh.in index 38f15c55..c121d5db 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -25,6 +25,13 @@ test -z "$default_locking" && default_locking="@default_locking@" test -z "$MULTIBYTE_ENABLED" && MULTIBYTE_ENABLED="@MULTIBYTE_ENABLED@" test -z "$ICONV_ENABLED" && ICONV_ENABLED="@ICONV_ENABLED@" +#### 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