unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename
@ 2022-08-04 11:08 David Bremner
  2022-08-04 11:08 ` [PATCH 2/2] emacs: update notmuch-show-get-filename to handle duplicates David Bremner
  2022-08-07 10:27 ` [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename David Bremner
  0 siblings, 2 replies; 6+ messages in thread
From: David Bremner @ 2022-08-04 11:08 UTC (permalink / raw)
  To: notmuch

This duplicates (no pun intended) one of the bugs reported by Gregor
in id:87edxw8jp4.fsf@no.workgroup
---
 test/T450-emacs-show.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh
index 37940c96..2cebd43d 100755
--- a/test/T450-emacs-show.sh
+++ b/test/T450-emacs-show.sh
@@ -350,6 +350,15 @@ file=$(notmuch search --output=files id:${ID3} | head -n 3 | tail -n 1)
 subject=$(grep '^Subject:' $file)
 test_expect_equal "$output" "$subject"
 
+FILE3=$(notmuch search --output=files --duplicate=3 "id:${ID3}")
+test_begin_subtest "duplicate=3, stash"
+test_subtest_known_broken
+test_emacs_expect_t \
+	"(notmuch-show \"id:${ID3}\")
+	 (notmuch-show-choose-duplicate 3)
+	 (notmuch-show-stash-filename)
+	 (notmuch-test-expect-equal (list (car kill-ring)) (list \"${FILE3}\"))"
+
 test_begin_subtest "duplicate=0"
 test_emacs "(test-log-error
 	      (notmuch-show \"id:${ID3}\")
-- 
2.35.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-07 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04 11:08 [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename David Bremner
2022-08-04 11:08 ` [PATCH 2/2] emacs: update notmuch-show-get-filename to handle duplicates David Bremner
2022-08-04 11:48   ` [PATCH 1/3] test/emacs: add known broken test for viewing raw duplicate David Bremner
2022-08-04 11:48     ` [PATCH 2/3] emacs/show: provide a more friendly function to get duplicate num David Bremner
2022-08-04 11:48     ` [PATCH 3/3] emacs: add duplicate support to notmuch-show-view-raw-message David Bremner
2022-08-07 10:27 ` [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).