mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test: do not hide test_emacs errors
Do not redirect test_emacs stderr to /dev/null. Test_emacs uses emacsclient(1) now and it does not print unwanted messages (like those from `message') to stderr. But it does print useful errors, e.g. when emacs server connection fails, given expression is not valid or undefined function is called.
This commit is contained in:
parent
085d45e389
commit
5964a760a5
2 changed files with 3 additions and 3 deletions
|
@ -256,13 +256,13 @@ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-at
|
||||||
# save as archive to test that Emacs does not re-compress .gz
|
# save as archive to test that Emacs does not re-compress .gz
|
||||||
test_emacs '(let ((standard-input "\"attachment1.gz\""))
|
test_emacs '(let ((standard-input "\"attachment1.gz\""))
|
||||||
(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")
|
(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")
|
||||||
(notmuch-show-save-attachments))' > /dev/null 2>&1
|
(notmuch-show-save-attachments))'
|
||||||
test_expect_equal_file attachment1.gz "$EXPECTED/attachment"
|
test_expect_equal_file attachment1.gz "$EXPECTED/attachment"
|
||||||
|
|
||||||
test_begin_subtest "Save attachment from within emacs using notmuch-show-save-part"
|
test_begin_subtest "Save attachment from within emacs using notmuch-show-save-part"
|
||||||
# save as archive to test that Emacs does not re-compress .gz
|
# save as archive to test that Emacs does not re-compress .gz
|
||||||
test_emacs '(let ((standard-input "\"attachment2.gz\""))
|
test_emacs '(let ((standard-input "\"attachment2.gz\""))
|
||||||
(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5))' > /dev/null 2>&1
|
(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5))'
|
||||||
test_expect_equal_file attachment2.gz "$EXPECTED/attachment"
|
test_expect_equal_file attachment2.gz "$EXPECTED/attachment"
|
||||||
|
|
||||||
test_begin_subtest "View raw message within emacs"
|
test_begin_subtest "View raw message within emacs"
|
||||||
|
|
|
@ -394,7 +394,7 @@ emacs_deliver_message ()
|
||||||
(message-goto-body)
|
(message-goto-body)
|
||||||
(insert \"${body}\")
|
(insert \"${body}\")
|
||||||
$@
|
$@
|
||||||
(message-send-and-exit))" >/dev/null 2>&1
|
(message-send-and-exit))"
|
||||||
wait ${smtp_dummy_pid}
|
wait ${smtp_dummy_pid}
|
||||||
notmuch new >/dev/null
|
notmuch new >/dev/null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue