Fixed install-mh -auto test by specifying HOME.
authorDavid Levine <levinedl@acm.org>
Thu, 5 Apr 2012 22:14:57 +0000 (17:14 -0500)
committerDavid Levine <levinedl@acm.org>
Thu, 5 Apr 2012 22:14:57 +0000 (17:14 -0500)
test/install-mh/test-install-mh

index f8af2c9..5a93961 100755 (executable)
@@ -56,10 +56,10 @@ else
 fi
 
 # Remove the nmh installation so that install-mh -auto can install.
+# And set HOME to that it installs in the test directory:
+# install-mh -auto does a chdir($HOME).
 rm -rf $MH_TEST_DIR/Mail
-echo "n
-n
-$installpath" | install-mh -auto >/dev/null
+HOME=$MH_TEST_DIR install-mh -auto >/dev/null
 
 if [ -f $MH_TEST_DIR/Mail/context  -a  -f $MH_TEST_DIR/Mail/.mh_profile ]; then
   install-mh -check