Re: Hi all
[notmuch-archives.git] / 69 / 79a1215abf317fb93bea0ebbc546e50cd43937
1 Return-Path: <jrollins@servo.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 2FB43429E53\r
6         for <notmuch@notmuchmail.org>; Sat, 28 May 2011 14:52:20 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.921\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]\r
13         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 z0uNkE62mBmF for <notmuch@notmuchmail.org>;\r
17         Sat, 28 May 2011 14:52:18 -0700 (PDT)\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
19         [131.215.239.19])\r
20         by olra.theworths.org (Postfix) with ESMTP id A13D5429E2F\r
21         for <notmuch@notmuchmail.org>; Sat, 28 May 2011 14:52:14 -0700 (PDT)\r
22 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
23         by earth-doxen-postvirus (Postfix) with ESMTP id 26CB166E038D;\r
24         Sat, 28 May 2011 14:52:13 -0700 (PDT)\r
25 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
26 Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
27         [98.149.172.122]) (Authenticated sender: jrollins)\r
28         by earth-doxen-submit (Postfix) with ESMTP id 5818466E0375;\r
29         Sat, 28 May 2011 14:52:09 -0700 (PDT)\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
31         id 2C05C7A0; Sat, 28 May 2011 14:52:05 -0700 (PDT)\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
33 To: Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: [PATCH 08/25] create and set temporary home directory\r
35 Date: Sat, 28 May 2011 14:51:43 -0700\r
36 Message-Id: <1306619520-25730-9-git-send-email-jrollins@finestructure.net>\r
37 X-Mailer: git-send-email 1.7.4.4\r
38 In-Reply-To: <1306619520-25730-8-git-send-email-jrollins@finestructure.net>\r
39 References: <1306619520-25730-1-git-send-email-jrollins@finestructure.net>\r
40         <1306619520-25730-2-git-send-email-jrollins@finestructure.net>\r
41         <1306619520-25730-3-git-send-email-jrollins@finestructure.net>\r
42         <1306619520-25730-4-git-send-email-jrollins@finestructure.net>\r
43         <1306619520-25730-5-git-send-email-jrollins@finestructure.net>\r
44         <1306619520-25730-6-git-send-email-jrollins@finestructure.net>\r
45         <1306619520-25730-7-git-send-email-jrollins@finestructure.net>\r
46         <1306619520-25730-8-git-send-email-jrollins@finestructure.net>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Sat, 28 May 2011 21:52:20 -0000\r
60 \r
61 From: Florian Friesdorf <flo@chaoflow.net>\r
62 \r
63 My first patch send to the list, not sure whether done properly.\r
64 \r
65 In the master branch in test/emacs two tests access the build users home\r
66 directory, so does emacs_deliver_message in the crypto branch.\r
67 \r
68 I think the tests should not touch the build user's home directory. The\r
69 patch creates a directory in the temporary test directory and sets home\r
70 accordingly.\r
71 \r
72 In case of a non-existent home directory, the tests are failing without\r
73 this patch.\r
74 \r
75 Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>\r
76 ---\r
77  test/test-lib.sh |    7 +++++++\r
78  1 files changed, 7 insertions(+), 0 deletions(-)\r
79 \r
80 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
81 index 922b1ef..6a8cb98 100755\r
82 --- a/test/test-lib.sh\r
83 +++ b/test/test-lib.sh\r
84 @@ -973,6 +973,13 @@ rm -fr "$test" || {\r
85         exit 1\r
86  }\r
87  \r
88 +# A temporary home directory is needed by at least:\r
89 +# - emacs/"Sending a message via (fake) SMTP"\r
90 +# - emacs/"Reply within emacs"\r
91 +# - crypto/emacs_deliver_message\r
92 +export HOME="${TMP_DIRECTORY}/home"\r
93 +mkdir -p "${HOME}"\r
94 +\r
95  MAIL_DIR="${TMP_DIRECTORY}/mail"\r
96  export GNUPGHOME="${TMP_DIRECTORY}/gnupg"\r
97  export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"\r
98 -- \r
99 1.7.4.4\r
100 \r