1 Return-Path: <dmitry.kurochkin@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 6C744421192
\r
6 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 19:23:56 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 3H8aMQUm6IiS for <notmuch@notmuchmail.org>;
\r
17 Thu, 30 Jun 2011 19:23:56 -0700 (PDT)
\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id BD20842118E
\r
22 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 19:23:55 -0700 (PDT)
\r
23 Received: by bwg12 with SMTP id 12so2613032bwg.26
\r
24 for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 19:23:54 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer;
\r
27 bh=WxedHnerPB9kKg3PXqXEzJXjwTxEsWWWNjc9bmMi2cM=;
\r
28 b=tkNb0Uja2ckqm7d+tOu4WsPvqUHvIA68WkF2krj5cSDCMsQ/mSKnx+sXm4wW7F5EVJ
\r
29 zaINL0R23SZGAmRs5AnoalVAFDWR2d9waYs2VNdgA9Qx0iGWgYEeksbWs8PkR+6OIVQE
\r
30 RGdNb0rJkEXuVmRiX0w96BYKxW9iCs9+tWeAM=
\r
31 Received: by 10.205.35.1 with SMTP id su1mr2577091bkb.129.1309487034360;
\r
32 Thu, 30 Jun 2011 19:23:54 -0700 (PDT)
\r
33 Received: from localhost ([91.144.186.21])
\r
34 by mx.google.com with ESMTPS id k16sm2579058bks.1.2011.06.30.19.23.52
\r
35 (version=TLSv1/SSLv3 cipher=OTHER);
\r
36 Thu, 30 Jun 2011 19:23:53 -0700 (PDT)
\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH] test: do not hide test_emacs errors
\r
40 Date: Fri, 1 Jul 2011 06:23:48 +0400
\r
41 Message-Id: <1309487028-18786-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
42 X-Mailer: git-send-email 1.7.5.4
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Fri, 01 Jul 2011 02:23:56 -0000
\r
57 Do not redirect test_emacs stderr to /dev/null. Test_emacs uses
\r
58 emacsclient(1) now and it does not print unwanted messages (like
\r
59 those from `message') to stderr. But it does print useful
\r
60 errors, e.g. when emacs server connection fails, given expression
\r
61 is not valid or undefined function is called.
\r
64 test/test-lib.sh | 2 +-
\r
65 2 files changed, 3 insertions(+), 3 deletions(-)
\r
67 diff --git a/test/emacs b/test/emacs
\r
68 index 53f455a..dbe8d9e 100755
\r
71 @@ -261,13 +261,13 @@ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-at
\r
72 # save as archive to test that Emacs does not re-compress .gz
\r
73 test_emacs '(let ((standard-input "\"attachment1.gz\""))
\r
74 (notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")
\r
75 - (notmuch-show-save-attachments))' > /dev/null 2>&1
\r
76 + (notmuch-show-save-attachments))'
\r
77 test_expect_equal_file attachment1.gz "$EXPECTED/attachment"
\r
79 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-part"
\r
80 # save as archive to test that Emacs does not re-compress .gz
\r
81 test_emacs '(let ((standard-input "\"attachment2.gz\""))
\r
82 - (notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5))' > /dev/null 2>&1
\r
83 + (notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5))'
\r
84 test_expect_equal_file attachment2.gz "$EXPECTED/attachment"
\r
86 test_begin_subtest "View raw message within emacs"
\r
87 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
88 index 22e387e..37f007a 100755
\r
89 --- a/test/test-lib.sh
\r
90 +++ b/test/test-lib.sh
\r
91 @@ -394,7 +394,7 @@ emacs_deliver_message ()
\r
93 (insert \"${body}\")
\r
95 - (message-send-and-exit))" >/dev/null 2>&1
\r
96 + (message-send-and-exit))"
\r
97 wait ${smtp_dummy_pid}
\r
98 notmuch new >/dev/null
\r