]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
In test-mhfixmsg, make sure that $HOME is writeable, in case
[nmh] / test / mhfixmsg / test-mhfixmsg
index 9c2df415bd76eaca867c84524db8351283990761..f67ae80970632a809f17262ccd4945250ae38ae4 100755 (executable)
@@ -14,6 +14,14 @@ fi
 
 . "${srcdir}/test/post/test-post-common.sh"
 
+#### w3m needs $HOME to be writeable.
+if [ -w "$HOME" ]; then
+  :
+else
+  #### $HOME isn't writeable, so use a directory that should be.
+  HOME="$MHTMPDIR"
+  export HOME
+fi
 
 expected="$MH_TEST_DIR/test-mhfixmsg$$.expected"
 expected_err="$MH_TEST_DIR/test-mhfixmsg$$.expected_err"