X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c87ca5ccad142a07c63368e44b698992af17ad5c..6e1d79d58e5da5ba06bc42ebebd2f6f8f2ceb52e:/test/repl/test-repl?ds=sidebyside diff --git a/test/repl/test-repl b/test/repl/test-repl index 20bb96d7..5d0d7de4 100755 --- a/test/repl/test-repl +++ b/test/repl/test-repl @@ -19,6 +19,8 @@ fi setup_test +check_exit '-eq 1' repl - + expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/Mail/draft @@ -55,8 +57,9 @@ Usage: repl: [+folder] [msg] [switches] -nofmtproc EOF -run_prog repl -help >$actual 2>&1 -check $expected $actual +#### Skip nmh intro text. +run_prog repl -help | sed '/^$/,$d' >"$actual" 2>&1 +check "$expected" "$actual" # check -version case `repl -v` in