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 716CF429E25 for ; Tue, 29 Nov 2011 06:48:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 jjB0YH+S7cR3 for ; Tue, 29 Nov 2011 06:48:58 -0800 (PST) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9F158431FB6 for ; Tue, 29 Nov 2011 06:48:58 -0800 (PST) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pATEmtXx013096; Tue, 29 Nov 2011 16:48:55 +0200 From: Tomi Ollila To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 4/4] test: fix error messages for missing binary dependencies In-Reply-To: <1322520067-15227-5-git-send-email-dmitry.kurochkin@gmail.com> References: <1322520067-15227-1-git-send-email-dmitry.kurochkin@gmail.com> <1322520067-15227-5-git-send-email-dmitry.kurochkin@gmail.com> User-Agent: Notmuch/0.10+15~gb5803e9 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ 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, 29 Nov 2011 14:48:59 -0000 LGTM On Tue, 29 Nov 2011 02:41:07 +0400, Dmitry Kurochkin wrote: > The fake missing binary functions check if the binary has already be > added to the diagnostic message to avoid duplicates. Unfortunately, > this check was buggy because the message string does not have the > trailing space. > --- > 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 2861d88..a975957 100644 > --- a/test/test-lib.sh > +++ b/test/test-lib.sh > @@ -556,7 +556,7 @@ test_declare_external_prereq () { > hash $binary 2>/dev/null || eval " > test_missing_external_prereq_${binary}_=t > $binary () { > - echo -n \"\$test_subtest_missing_external_prereqs_\" | grep -qe \" $name \" || > + echo -n \"\$test_subtest_missing_external_prereqs_ \" | grep -qe \" $name \" || > test_subtest_missing_external_prereqs_=\"\$test_subtest_missing_external_prereqs_ $name\" > false > }" > -- > 1.7.7.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > -- Tomi Ollila !! tomi.ollila@nixu.fi !! +358 400 888 366 Nixu Oy !! http://www.nixu.fi/ !! Keilaranta 15, FI-02150 Espoo, Finland