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 9C094431FBD for ; Tue, 24 Jan 2012 07:21:38 -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 y+RMKakFslMk for ; Tue, 24 Jan 2012 07:21:38 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-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 D9B3F431FB6 for ; Tue, 24 Jan 2012 07:21:37 -0800 (PST) Received: by bkbzt19 with SMTP id zt19so2467544bkb.26 for ; Tue, 24 Jan 2012 07:21:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=wPuUMFv+JldMiRUBkjROB7Tn5CQAd+GAEfqeh/bqno0=; b=m8kdoiUmTlmjRTKID5MLR5yxpEp+adHdoWAP7/mV5HhpUNsLapvSH8Q+3ryJpSGEFg UnP+nSq2izyZlyH2KNl+IKPcJs+3efE3LuCLCo+AprZwWCBbobrE6lOCAQBCgJxSKWmL pdTedfQ7lj+dDEgkqK/z8e4X0WNfWSk9SEcLo= Received: by 10.205.130.12 with SMTP id hk12mr5077889bkc.56.1327418495248; Tue, 24 Jan 2012 07:21:35 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id bw9sm15552906bkb.8.2012.01.24.07.21.33 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 07:21:34 -0800 (PST) From: Dmitry Kurochkin To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH 1/4 v42] test: Don't return the result of checking for running emacs to the tester. In-Reply-To: <1327341947-29206-1-git-send-email-dme@dme.org> References: <1326804748-8989-2-git-send-email-dme@dme.org> <1327341947-29206-1-git-send-email-dme@dme.org> User-Agent: Notmuch/0.11+100~gd650abf (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 24 Jan 2012 19:20:28 +0400 Message-ID: <87hazlm8jn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 24 Jan 2012 15:21:38 -0000 On Mon, 23 Jan 2012 18:05:44 +0000, David Edmondson wrote: > When checking for a running emacs, test_emacs evaluates the empty list > '()'. This returns 'nil' when emacs is running, which is then > prepended to the actual test result. Given that it is not part of the > actual test output the test harness can incorrectly report test > failure (or success). > --- > > Commentary updated. > LGTM Regards, Dmitry > test/test-lib.sh | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index 0da60fb..82c686c 100644 > --- a/test/test-lib.sh > +++ b/test/test-lib.sh > @@ -926,7 +926,7 @@ test_emacs () { > --eval '(orphan-watchdog $$)'" || return > EMACS_SERVER="$server_name" > # wait until the emacs server is up > - until test_emacs '()' 2>/dev/null; do > + until test_emacs '()' >/dev/null 2>/dev/null; do > sleep 1 > done > fi > -- > 1.7.8.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch