[PATCH 1/2] test: add known broken test for incorrect error message

Subject: [PATCH 1/2] test: add known broken test for incorrect error message

Date: Sun, 3 Dec 2023 15:01:05 -0400

To: notmuch@notmuchmail.org

Cc: hi@alyssa.is

From: David Bremner


Duplicate bug reported in id:87wmtvcor5.fsf@alyssa.is

The error message is nonsense, because notmuch config list actually
includes the database in those two cases.
---
 test/T055-path-config.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index efc79e8b..fcaf09d3 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -374,6 +374,12 @@ EOF
 	   notmuch new
 	   test_expect_equal "$(xapian-metadata get ${XAPIAN_PATH} version)" 3
 	   ;;
+       home_mail|maildir_env)
+	   test_begin_subtest "No errors from config list ($config)"
+	   test_subtest_known_broken
+	   notmuch config list 2>OUTPUT 1>/dev/null
+	   test_expect_equal_file /dev/null OUTPUT
+	   ;;
        *)
 	   backup_database
 	   test_begin_subtest ".notmuch without xapian/ handled gracefully ($config)"
-- 
2.42.0

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: