X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d6b2ae5fa68b9a82ffc006c233aef64c5cdb3bd2..c02f66668d32980a3770e450061c5b96b9f31690:/test/repl/test-repl diff --git a/test/repl/test-repl b/test/repl/test-repl index e4856d08..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 @@ -35,6 +37,7 @@ Usage: repl: [+folder] [msg] [switches] -nodraftfolder -editor editor -noedit + -convertargs type argstring -fcc folder -filter filterfile -form formfile @@ -54,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