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