X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fhelp-test;h=bd0111c995b905a21ec706723fe806514240aaa4;hb=ff598e4fdd580d9c7e19eb784b2ed137605d166f;hp=9f4b9c79de47860f4c128074f92ffeda43310347;hpb=ac8576de63b4383aef597e1db5af939e3b46594c;p=notmuch diff --git a/test/help-test b/test/help-test index 9f4b9c79..bd0111c9 100755 --- a/test/help-test +++ b/test/help-test @@ -1,7 +1,7 @@ #!/usr/bin/env bash test_description="online help" -. test-lib.sh +. ./test-lib.sh test_expect_success 'notmuch --help' 'notmuch --help' test_expect_success 'notmuch --help tag' 'notmuch --help tag' @@ -9,4 +9,13 @@ test_expect_success 'notmuch help' 'notmuch help' test_expect_success 'notmuch help tag' 'notmuch help tag' test_expect_success 'notmuch --version' 'notmuch --version' +test_begin_subtest "notmuch --stderr=stderr help %" +notmuch --stderr=stderr help % +test_expect_equal "$(cat stderr)" " +Sorry, % is not a known command. There's not much I can do to help." + +test_begin_subtest "notmuch --stderr=- help %" +test_expect_equal "$(notmuch --stderr=- help %)" " +Sorry, % is not a known command. There's not much I can do to help." + test_done