[PATCH] test: Use env to set TMPDIR when running emacs in screen.
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 10 Nov 2011 16:59:35 +0000 (08:59 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:03 +0000 (09:40 -0800)
61/18b230aa474db5f084cc00cbaf99fabb1eaa8a [new file with mode: 0644]

diff --git a/61/18b230aa474db5f084cc00cbaf99fabb1eaa8a b/61/18b230aa474db5f084cc00cbaf99fabb1eaa8a
new file mode 100644 (file)
index 0000000..1f140aa
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <jrollins@finestructure.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 26389429E25\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 YC4Gz+X+zkqZ for <notmuch@notmuchmail.org>;\r
+       Thu, 10 Nov 2011 08:59:48 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id B8BD9431FD0\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:48 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 2262B66E0157\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:48 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (cpe-76-174-136-149.socal.res.rr.com\r
+       [76.174.136.149]) (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 33A7066E01FC\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 08:59:46 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id CE517350; Thu, 10 Nov 2011 08:59:45 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH] test: Use env to set TMPDIR when running emacs in screen.\r
+Date: Thu, 10 Nov 2011 08:59:35 -0800\r
+Message-Id: <1320944375-29843-1-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.7.1\r
+In-Reply-To: <id:878vnomntf.fsf@servo.finestructure.net>\r
+References: <id:878vnomntf.fsf@servo.finestructure.net>\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: Thu, 10 Nov 2011 16:59:49 -0000\r
+\r
+This is to get around a bug where screen unsets TMPDIR.  This causes\r
+problems for users who set TMPDIR to something other than it's default\r
+(/tmp).\r
+---\r
+ test/test-lib.sh |    4 +++-\r
+ 1 files changed, 3 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/test/test-lib.sh b/test/test-lib.sh\r
+index ff5183f..108537e 100755\r
+--- a/test/test-lib.sh\r
++++ b/test/test-lib.sh\r
+@@ -842,7 +842,9 @@ test_emacs () {\r
+       if [ -z "$EMACS_SERVER" ]; then\r
+               EMACS_SERVER="notmuch-test-suite-$$"\r
+               # start a detached screen session with an emacs server\r
+-              screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \\r
++              screen -S "$EMACS_SERVER" -d -m \\r
++                  env TMPDIR="$TMPDIR" \\r
++                  "$TMP_DIRECTORY/run_emacs" \\r
+                       --no-window-system \\r
+                       --eval "(setq server-name \"$EMACS_SERVER\")" \\r
+                       --eval '(server-start)' \\r
+-- \r
+1.7.7.1\r
+\r