From 66247d26f364a6afbe113a5d6e84eec859b1193e Mon Sep 17 00:00:00 2001 From: Pieter Praet Date: Wed, 16 Nov 2011 12:38:19 +0100 Subject: test: emacs: tidy up "Stashing in notmuch-show" test Merge expected output into the actual test, so we can verify the stashed filename using ${gen_msg_filename} instead of doing sed tricks. --- test/emacs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'test/emacs') diff --git a/test/emacs b/test/emacs index 75a0a74..3bf2e29 100755 --- a/test/emacs +++ b/test/emacs @@ -369,8 +369,18 @@ test_emacs '(notmuch-show "id:\"bought\"") (rotate-yank-pointer 1)) (reverse-region (point-min) (point-max)) (test-output)' -sed -i -e 's/^.*tmp.emacs\/mail.*$/FILENAME/' OUTPUT -test_expect_equal_file OUTPUT $EXPECTED/emacs-stashing +cat <EXPECTED +Sat, 01 Jan 2000 12:00:00 -0000 +Some One +Some One Else +Notmuch +Stash my stashables +id:"bought" +bought +inbox,stashtest +${gen_msg_filename} +EOF +test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "Stashing in notmuch-search" test_emacs '(notmuch-search "id:\"bought\"") -- cgit v1.2.3