mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-24 18:34:52 +01:00
test: Produce useful output when the HTML with images test fails
Previously, this would simply indicate that the grep failed without any indication of the Emacs output it failed on. Now we take advantage of the test framework's handling of stdout to display the incorrect Emacs output if the test fails.
This commit is contained in:
parent
e0adf10be8
commit
73a9fcf89b
1 changed files with 3 additions and 2 deletions
|
@ -809,9 +809,10 @@ test_emacs "(let ((mm-text-html-renderer
|
|||
(notmuch-show \"id:${gen_msg_id}\"))
|
||||
(test-output)" > /dev/null
|
||||
# Different Emacs versions and renderers give very different results,
|
||||
# so just check that something reasonable showed up.
|
||||
# so just check that something reasonable showed up. We first cat the
|
||||
# output so the test framework will print it if the test fails.
|
||||
test_expect_success "Rendering HTML mail with images" \
|
||||
'grep -q smiley OUTPUT'
|
||||
'cat OUTPUT && grep -q smiley OUTPUT'
|
||||
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue