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 D2951429E2E for ; Sun, 27 Nov 2011 10:36:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 OrPMZ-BrEKJw for ; Sun, 27 Nov 2011 10:36:57 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 49D52429E28 for ; Sun, 27 Nov 2011 10:36:56 -0800 (PST) Received: by mail-bw0-f53.google.com with SMTP id q10so8006876bka.26 for ; Sun, 27 Nov 2011 10:36:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=H1TwTunttUuBRw65qtbeWH+0T69kVTxUuyEthyOLLCM=; b=dKBwE51+zdJNhvUJmMQ1SwLEBaO/YVo+qOBxIKnRVNGlouGQ/vBGdUnZDfN6X0/5ci ghTKO3EHQfGJLxYKis0asNiHref9uUV4v/+FMTFdkXtjTSXNSEqEgEePikI+G++G8g+Z acCQNu2t/PZ9olcUU8rY4HDiVO89M24Cdqx60= Received: by 10.204.156.6 with SMTP id u6mr41108500bkw.135.1322419015980; Sun, 27 Nov 2011 10:36:55 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id cc2sm25119667bkb.8.2011.11.27.10.36.54 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Nov 2011 10:36:55 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v3 6/7] test: check if emacs is available in the beginning of test_emacs Date: Sun, 27 Nov 2011 22:36:18 +0400 Message-Id: <1322418979-19180-7-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1322418979-19180-1-git-send-email-dmitry.kurochkin@gmail.com> References: <87pqgd7d23.fsf@rocinante.cs.unb.ca> <1322418979-19180-1-git-send-email-dmitry.kurochkin@gmail.com> 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: Sun, 27 Nov 2011 18:36:58 -0000 Unfortunately, this is needed to avoid the emacs waiting loop. --- test/test-lib.sh | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/test-lib.sh b/test/test-lib.sh index 2422e32..11e6646 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -894,6 +894,10 @@ EOF } test_emacs () { + # test dependencies beforehand to avoid the waiting loop below + test_require_external_prereq emacs || return + test_require_external_prereq emacsclient || return + if [ -z "$EMACS_SERVER" ]; then server_name="notmuch-test-suite-$$" # start a detached session with an emacs server -- 1.7.7.3