Re: Hi all
[notmuch-archives.git] / 3a / 8012e99b34207ad90d53086a8778b55d9aaea6
1 Return-Path: <sojkam1@fel.cvut.cz>\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 arlo.cworth.org (Postfix) with ESMTP id 818846DE1579\r
6  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 13:17:20 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.364\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.364 tagged_above=-999 required=5 tests=[AWL=1.486,\r
12   RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id m_YUiT0v6IxX for <notmuch@notmuchmail.org>;\r
16  Mon, 28 Dec 2015 13:17:17 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18  by arlo.cworth.org (Postfix) with ESMTP id 57FDE6DE111A\r
19  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 13:17:17 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.7])\r
21  by max.feld.cvut.cz (Postfix) with ESMTP id 912E419F38E4\r
22  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 22:17:15 +0100 (CET)\r
23 X-Virus-Scanned: IMAP STYX AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25  by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044)\r
26  with ESMTP id fM4AKUgH-kuV for <notmuch@notmuchmail.org>;\r
27  Mon, 28 Dec 2015 22:17:14 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29  by max.feld.cvut.cz (Postfix) with ESMTP id 24C6F19F3893\r
30  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 22:17:13 +0100 (CET)\r
31 Received: from wsh by steelpick.2x.cz with local (Exim 4.86)\r
32  (envelope-from <sojkam1@fel.cvut.cz>)\r
33  id 1aDfAF-0003hl-P3; Mon, 28 Dec 2015 22:17:11 +0100\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH] test: Unset ALTERNATE_EDITOR before running emacsclient\r
37 Date: Mon, 28 Dec 2015 22:16:35 +0100\r
38 Message-Id: <1451337395-14196-1-git-send-email-sojkam1@fel.cvut.cz>\r
39 X-Mailer: git-send-email 2.6.4\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.20\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Mon, 28 Dec 2015 21:17:20 -0000\r
53 \r
54 ALTERNATE_EDITOR causes emacsclient to run an alternate editor if the\r
55 emacs server is not ready. This can collide with intended\r
56 functionality in test-lib.sh.\r
57 \r
58 If the ALTERNATE_EDITOR is set but empty, emacsclient runs emacs\r
59 daemon and tries to connect to it. When this happens the emacs run by\r
60 test-lib.sh fails to start the server and the subsequent attempts to\r
61 use the server fail because the daemon started by emacsclient does not\r
62 know about notmuch-test-progn. This leads to test suite failure due to\r
63 time out on any emacs test.\r
64 ---\r
65  test/test-lib.sh | 1 +\r
66  1 file changed, 1 insertion(+)\r
67 \r
68 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
69 index 126911f..0f6a6cf 100644\r
70 --- a/test/test-lib.sh\r
71 +++ b/test/test-lib.sh\r
72 @@ -1152,6 +1152,7 @@ test_emacs () {\r
73         rm -f OUTPUT\r
74         touch OUTPUT\r
75  \r
76 +       unset ALTERNATE_EDITOR\r
77         ${TEST_EMACSCLIENT} --socket-name="$EMACS_SERVER" --eval "(notmuch-test-progn $@)"\r
78  }\r
79  \r
80 -- \r
81 2.6.4\r
82 \r