From 30a9c9b62fa92df289079080eb5ee57d2fda3951 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 14 Aug 2016 13:11:50 -0400 Subject: [PATCH] Set HOME in tests if unset, to avoid warning from w3m about not being about to create config directory. --- test/common.sh.in | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.56.0