aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-11-20 10:58:45 -0500
committerGravatar David Bremner <bremner@debian.org>2012-11-21 18:52:23 -0400
commit73a9fcf89bd7411d7d69f133a8c8dee313d93a58 (patch)
treee835d212d8a1be654a1322df68651ba190442cba /test
parente0adf10be88cc33fda27c07458d2375a703f4eef (diff)
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.
Diffstat (limited to 'test')
-rwxr-xr-xtest/emacs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/emacs b/test/emacs
index 77265b02..5649d55f 100755
--- a/test/emacs
+++ b/test/emacs
@@ -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