[PATCH] create and set temporary home directory
authorFlorian Friesdorf <flo@chaoflow.net>
Mon, 18 Apr 2011 17:41:39 +0000 (19:41 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:05 +0000 (09:38 -0800)
bc/ec5e0f7d58af9a391102c3b55fc94c1fa07375 [new file with mode: 0644]

diff --git a/bc/ec5e0f7d58af9a391102c3b55fc94c1fa07375 b/bc/ec5e0f7d58af9a391102c3b55fc94c1fa07375
new file mode 100644 (file)
index 0000000..bf4603b
--- /dev/null
@@ -0,0 +1,102 @@
+Return-Path: <flo@chaoflow.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 71D63431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 10:41:43 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id LdVcU1jA6kkA for <notmuch@notmuchmail.org>;\r
+       Mon, 18 Apr 2011 10:41:43 -0700 (PDT)\r
+Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id CF1FF431FB5\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 10:41:42 -0700 (PDT)\r
+Received: from eve.chaoflow.net (p5DE9670C.dip.t-dialin.net [93.233.103.12])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       (Authenticated sender: flo@chaoflow.net)\r
+       by tesla.chaoflow.net (Postfix) with ESMTPSA id 2A0AACAC4\r
+       for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 19:41:40 +0200 (CEST)\r
+Received: by eve.chaoflow.net (Postfix, from userid 1000) id C1303B35;\r
+       Mon, 18 Apr 2011 17:41:39 +0000 (Local time zone must be set--see zic\r
+       manual page)\r
+From: Florian Friesdorf <flo@chaoflow.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] create and set temporary home directory\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Mon, 18 Apr 2011 19:41:39 +0200\r
+Message-ID: <877har5uek.fsf@eve.chaoflow.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Virus-Scanned: clamav-milter 0.96.5 at tesla\r
+X-Virus-Status: Clean\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 18 Apr 2011 17:41:43 -0000\r
+\r
+\r
+My first patch send to the list, not sure whether done properly.\r
+\r
+In the master branch in test/emacs two tests access the build users home\r
+directory, so does emacs_deliver_message in the crypto branch.\r
+\r
+I think the tests should not touch the build user's home directory. The\r
+patch creates a directory in the temporary test directory and sets home\r
+accordingly.\r
+\r
+In case of a non-existent home directory, the tests are failing without\r
+this patch.\r
+\r
+---\r
+ test/test-lib.sh |    7 +++++++\r
+ 1 files changed, 7 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+index 9581ead..43dae21 100755\r
+--- a/test/test-lib.sh\r
++++ b/test/test-lib.sh\r
+@@ -923,6 +923,13 @@ rm -fr "$test" || {\r
+       exit 1\r
+ }\r
\r
++# A temporary home directory is needed by at least:\r
++# - emacs/"Sending a message via (fake) SMTP"\r
++# - emacs/"Reply within emacs"\r
++# - crypto/emacs_deliver_message\r
++export HOME="${TMP_DIRECTORY}/home"\r
++mkdir -p "${HOME}"\r
++\r
+ MAIL_DIR="${TMP_DIRECTORY}/mail"\r
+ export GNUPGHOME="${TMP_DIRECTORY}/gnupg"\r
+ export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"\r
+-- \r
+1.7.4.4\r
+\r
+\r
+\r
+\r
+\r
+-- \r
+Florian Friesdorf <flo@chaoflow.net>\r
+  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083\r
+Jabber/XMPP: flo@chaoflow.net\r
+IRC: chaoflow on freenode,ircnet,blafasel,OFTC\r