1 Return-Path: <tomi.ollila@nixu.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 C3670431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 14:03:24 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id ueUjkeS7sMku for <notmuch@notmuchmail.org>;
\r
16 Thu, 10 Nov 2011 14:03:23 -0800 (PST)
\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id A9E96431FB6
\r
21 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 14:03:23 -0800 (PST)
\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
23 by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
\r
24 pAAM3E5m006489; Fri, 11 Nov 2011 00:03:14 +0200
\r
25 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
26 To: Jameson Graef Rollins <jrollins@finestructure.net>,
\r
27 Notmuch Mail <notmuch@notmuchmail.org>
\r
28 Subject: [PATCH] test: use dtach(1) instead of screen(1) in emacs tests.
\r
29 In-Reply-To: <1320953702-16732-1-git-send-email-jrollins@finestructure.net>
\r
30 References: <20111110192836.GN2658@mit.edu>
\r
31 <1320953702-16732-1-git-send-email-jrollins@finestructure.net>
\r
32 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1
\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
35 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
36 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
37 Date: Fri, 11 Nov 2011 00:03:14 +0200
\r
38 Message-ID: <yf6mxc3ab4t.fsf@taco2.nixu.fi>
\r
40 Content-Type: text/plain; charset=us-ascii
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Thu, 10 Nov 2011 22:03:24 -0000
\r
55 dtach is lighter than screen and is not setuid/setgid program so
\r
56 TMPDIR does not get reset by dynamic loader when executed.
\r
58 test/test-lib.sh | 4 ++--
\r
59 1 files changed, 2 insertions(+), 2 deletions(-)
\r
61 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
62 index c81c709..af723ad 100755
\r
63 --- a/test/test-lib.sh
\r
64 +++ b/test/test-lib.sh
\r
65 @@ -844,8 +844,8 @@ test_emacs () {
\r
66 if [ -z "$EMACS_SERVER" ]; then
\r
67 EMACS_SERVER="notmuch-test-suite-$$"
\r
68 # start a detached screen session with an emacs server
\r
69 - screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \
\r
70 - --no-window-system \
\r
71 + TERM=xterm dtach -n "$TMP_DIRECTORY/dtach-emacs-socket-$$" \
\r
72 + "$TMP_DIRECTORY/run_emacs" --no-window-system \
\r
73 --eval "(setq server-name \"$EMACS_SERVER\")" \
\r
74 --eval '(server-start)' \
\r
75 --eval "(orphan-watchdog $$)" || return
\r