X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fa462ef71fbaf819397c59b2c07adf45a04af9f8..605516b7c2e68efcd681478d40b210e6af968d58:/test/install-mh/test-install-mh diff --git a/test/install-mh/test-install-mh b/test/install-mh/test-install-mh index 9798e5ed..45a9e2b6 100755 --- a/test/install-mh/test-install-mh +++ b/test/install-mh/test-install-mh @@ -16,6 +16,8 @@ fi setup_test +check_exit '-eq 1' install-mh - + # check with no options, with nmh already installed run_test "install-mh" \ 'install-mh: You already have an nmh profile, use an editor to modify it' @@ -49,7 +51,7 @@ n $installpath y" | run_prog install-mh >/dev/null -if [ -f $MH_TEST_DIR/Mail/context -a -f $MH_TEST_DIR/Mail/.mh_profile ]; then +if [ -f $MH_TEST_DIR/Mail/context -a -f "$MH" ]; then run_prog install-mh -check else failed=`expr ${failed:-0} + 1` @@ -61,7 +63,7 @@ fi rm -rf $MH_TEST_DIR/Mail 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 +if [ -f $MH_TEST_DIR/Mail/context -a -f "$MH" ]; then run_prog install-mh -check else failed=`expr ${failed:-0} + 1`