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 86AC4429E25 for ; Thu, 10 Nov 2011 14:22:20 -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 Pq9mwFFMeWUr for ; Thu, 10 Nov 2011 14:22:20 -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 0C12A431FD0 for ; Thu, 10 Nov 2011 14:22:20 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 7738B328118 for ; Thu, 10 Nov 2011 14:22:19 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on fire-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 fire-doxen-submit (Postfix) with ESMTP id 65A3232811A for ; Thu, 10 Nov 2011 14:22:17 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 113D62E6; Thu, 10 Nov 2011 14:22:17 -0800 (PST) From: Jameson Graef Rollins To: Notmuch Mail Subject: [PATCH] test: use dtach(1) instead of screen(1) in emacs tests. Date: Thu, 10 Nov 2011 14:22:17 -0800 Message-Id: <1320963737-1666-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 22:22:20 -0000 From: Tomi Ollila dtach is lighter than screen and is not setuid/setgid program so TMPDIR does not get reset by dynamic loader when executed. Signed-off-by: Jameson Graef Rollins --- This tweaks the original patch slightly by removing the no-longer needed screenrc variables. test/test-lib.sh | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index c81c709..c0fe037 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -50,8 +50,6 @@ TZ=UTC TERM=dumb export LANG LC_ALL PAGER TERM TZ GIT_TEST_CMP=${GIT_TEST_CMP:-diff -u} -export SCREENRC=/dev/null -export SYSSCREENRC=/dev/null # Protect ourselves from common misconfiguration to export # CDPATH into the environment @@ -844,7 +842,8 @@ 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" \ + TERM=xterm dtach -n "$TMP_DIRECTORY/dtach-emacs-socket-$$" \ + "$TMP_DIRECTORY/run_emacs" \ --no-window-system \ --eval "(setq server-name \"$EMACS_SERVER\")" \ --eval '(server-start)' \ -- 1.7.7.1