1 Return-Path: <jrollins@finestructure.net>
\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 26389429E25
\r
6 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:49 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\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 YC4Gz+X+zkqZ for <notmuch@notmuchmail.org>;
\r
16 Thu, 10 Nov 2011 08:59:48 -0800 (PST)
\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id B8BD9431FD0
\r
20 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:48 -0800 (PST)
\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by earth-doxen-postvirus (Postfix) with ESMTP id 2262B66E0157
\r
23 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:48 -0800 (PST)
\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new
\r
25 Received: from finestructure.net (cpe-76-174-136-149.socal.res.rr.com
\r
26 [76.174.136.149]) (Authenticated sender: jrollins)
\r
27 by earth-doxen-submit (Postfix) with ESMTP id 33A7066E01FC
\r
28 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:46 -0800 (PST)
\r
29 Received: by finestructure.net (Postfix, from userid 1000)
\r
30 id CE517350; Thu, 10 Nov 2011 08:59:45 -0800 (PST)
\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH] test: Use env to set TMPDIR when running emacs in screen.
\r
34 Date: Thu, 10 Nov 2011 08:59:35 -0800
\r
35 Message-Id: <1320944375-29843-1-git-send-email-jrollins@finestructure.net>
\r
36 X-Mailer: git-send-email 1.7.7.1
\r
37 In-Reply-To: <id:878vnomntf.fsf@servo.finestructure.net>
\r
38 References: <id:878vnomntf.fsf@servo.finestructure.net>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Thu, 10 Nov 2011 16:59:49 -0000
\r
53 This is to get around a bug where screen unsets TMPDIR. This causes
\r
54 problems for users who set TMPDIR to something other than it's default
\r
57 test/test-lib.sh | 4 +++-
\r
58 1 files changed, 3 insertions(+), 1 deletions(-)
\r
60 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
61 index ff5183f..108537e 100755
\r
62 --- a/test/test-lib.sh
\r
63 +++ b/test/test-lib.sh
\r
64 @@ -842,7 +842,9 @@ test_emacs () {
\r
65 if [ -z "$EMACS_SERVER" ]; then
\r
66 EMACS_SERVER="notmuch-test-suite-$$"
\r
67 # start a detached screen session with an emacs server
\r
68 - screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \
\r
69 + screen -S "$EMACS_SERVER" -d -m \
\r
70 + env TMPDIR="$TMPDIR" \
\r
71 + "$TMP_DIRECTORY/run_emacs" \
\r
72 --no-window-system \
\r
73 --eval "(setq server-name \"$EMACS_SERVER\")" \
\r
74 --eval '(server-start)' \
\r