Re: [PATCH v2] test: Unset ALTERNATE_EDITOR before running emacsclient
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 29 Dec 2015 10:05:17 +0000 (12:05 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:15 +0000 (14:50 -0700)
1d/c564851d061956a1dc24597fe2db3562f62a2d [new file with mode: 0644]

diff --git a/1d/c564851d061956a1dc24597fe2db3562f62a2d b/1d/c564851d061956a1dc24597fe2db3562f62a2d
new file mode 100644 (file)
index 0000000..997edcd
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 86C766DE17BA\r
+ for <notmuch@notmuchmail.org>; Tue, 29 Dec 2015 02:05:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.685\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.685 tagged_above=-999 required=5 tests=[AWL=0.033, \r
+ SPF_NEUTRAL=0.652] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id EQ3vA9PiqKHK for <notmuch@notmuchmail.org>;\r
+ Tue, 29 Dec 2015 02:05:13 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 121246DE17B5\r
+ for <notmuch@notmuchmail.org>; Tue, 29 Dec 2015 02:05:02 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 98DFD10008E;\r
+ Tue, 29 Dec 2015 12:05:17 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2] test: Unset ALTERNATE_EDITOR before running\r
+ emacsclient\r
+In-Reply-To: <1451379137-14330-1-git-send-email-sojkam1@fel.cvut.cz>\r
+References: <m28u4e2on4.fsf@guru.guru-group.fi>\r
+ <1451379137-14330-1-git-send-email-sojkam1@fel.cvut.cz>\r
+User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 29 Dec 2015 12:05:17 +0200\r
+Message-ID: <m24mf1in8i.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 29 Dec 2015 10:05:16 -0000\r
+\r
+On Tue, Dec 29 2015, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+\r
+> ALTERNATE_EDITOR causes emacsclient to run an alternate editor if the\r
+> emacs server is not ready. This can collide with intended\r
+> functionality in test-lib.sh.\r
+>\r
+> If the ALTERNATE_EDITOR is set but empty, emacsclient runs emacs\r
+> daemon and tries to connect to it. When this happens the emacs run by\r
+> test-lib.sh fails to start the server and the subsequent attempts to\r
+> use the server fail because the daemon started by emacsclient does not\r
+> know about notmuch-test-progn. This leads to test suite failure due to\r
+> time out on any emacs test.\r
+> ---\r
+\r
+LGTM.\r
+Tomi\r
+\r
+\r
+>  test/test-lib.sh | 3 +++\r
+>  1 file changed, 3 insertions(+)\r
+>\r
+> diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+> index 126911f..270c718 100644\r
+> --- a/test/test-lib.sh\r
+> +++ b/test/test-lib.sh\r
+> @@ -82,6 +82,9 @@ unset CDPATH\r
+>  \r
+>  unset GREP_OPTIONS\r
+>  \r
+> +# For emacsclient\r
+> +unset ALTERNATE_EDITOR\r
+> +\r
+>  # Convenience\r
+>  #\r
+>  # A regexp to match 5 and 40 hexdigits\r
+> -- \r
+> 2.6.4\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> https://notmuchmail.org/mailman/listinfo/notmuch\r