[PATCH] test/cli: Add reproducer for the spurious warning about uuid.

Subject: [PATCH] test/cli: Add reproducer for the spurious warning about uuid.

Date: Sun, 6 Jul 2025 07:33:35 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


As reported by "lh" on IRC.
---
 test/T570-revision-tracking.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/T570-revision-tracking.sh b/test/T570-revision-tracking.sh
index bcc97dd9..5242711d 100755
--- a/test/T570-revision-tracking.sh
+++ b/test/T570-revision-tracking.sh
@@ -63,6 +63,11 @@ test_expect_success "notmuch --uuid=$(cat UUID) search '*'"
 test_begin_subtest "uuid works as global option II"
 test_expect_code 1 "notmuch --uuid=this-is-no-uuid search '*'"
 
+test_begin_subtest "no warning from uuid as global option"
+test_subtest_known_broken
+notmuch --uuid=$(cat UUID) search '*' 1>OUTPUT 2>ERROR
+test_expect_equal_file /dev/null ERROR
+
 test_begin_subtest "search fails with incorrect uuid"
 test_expect_code 1 "notmuch search --uuid=this-is-no-uuid '*'"
 
-- 
2.47.2

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

Thread: