]> diplodocus.org Git - nmh/commitdiff
Set HOME in tests if unset, to avoid warning from w3m about not being
authorDavid Levine <levinedl@acm.org>
Sun, 14 Aug 2016 17:11:50 +0000 (13:11 -0400)
committerDavid Levine <levinedl@acm.org>
Sun, 14 Aug 2016 17:11:50 +0000 (13:11 -0400)
about to create config directory.

test/common.sh.in

index 38f15c556a5c6aed01f0814ec348ced6f5520c5f..c121d5db2ace0c00dbff507177085a05edbaf4b0 100644 (file)
@@ -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