X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT440-emacs-hello.sh;h=842781a48c3512c82c259688947f8b87b1f53167;hp=bafccd1f355f45450348fc30cfe2718049fd9e13;hb=2707c06a0fc587a68096a3ec6f054ba4f0d7e7c7;hpb=d21e72c9f95d1d052360976302a2f9cfcc1556a5 diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh index bafccd1f..842781a4 100755 --- a/test/T440-emacs-hello.sh +++ b/test/T440-emacs-hello.sh @@ -68,4 +68,22 @@ test_emacs '(notmuch-hello) notmuch tag -$tag '*' test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT +test_begin_subtest "All tags show up" +tag=exclude_me +notmuch tag +$tag '*' +notmuch config set search.exclude_tags $tag +test_emacs '(notmuch-hello) + (test-output)' +notmuch tag -$tag '*' +test_expect_equal_file $EXPECTED/notmuch-hello-all-tags OUTPUT + +test_done +test_begin_subtest "notmuch-hello with nonexistent CWD" +test_emacs ' + (notmuch-hello) + (test-log-error + (let ((default-directory "/nonexistent")) + (notmuch-hello-update)))' +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done