From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 148006DE0EF2 for ; Mon, 4 Mar 2019 04:04:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[AWL=-0.010, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zs5hTjyGcNGd for ; Mon, 4 Mar 2019 04:04:27 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5B0956DE0C6D for ; Mon, 4 Mar 2019 04:04:27 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1h0mKV-00048G-2Q; Mon, 04 Mar 2019 07:04:23 -0500 Received: (nullmailer pid 31489 invoked by uid 1000); Mon, 04 Mar 2019 12:04:21 -0000 From: David Bremner To: Luis Ressel , notmuch@notmuchmail.org Subject: Re: [PATCH] test: Ignore subtly different behaviour of the musl libc In-Reply-To: <20190226020629.5273-1-aranea@aixah.de> References: <20190226020629.5273-1-aranea@aixah.de> Date: Mon, 04 Mar 2019 08:04:21 -0400 Message-ID: <87zhqax2uy.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Mon, 04 Mar 2019 12:04:29 -0000 Luis Ressel writes: > --- > test/T030-config.sh | 6 ++++-- > test/T650-regexp-query.sh | 4 ++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > In general we want more verbose commit messages for notmuch (https://notmuchmail.org/contributing/#index5h2) > +test_begin_subtest "List all items (stderr output)" > +test_expect_equal "$(notmuch_config_sanitize + The first change looks OK. Another option would be to cat the two files into one in the test with a seperator. That's how the test_C based tests work. > test_begin_subtest "Top level --config=FILE option" > cp "${NOTMUCH_CONFIG}" alt-config > notmuch --config=alt-config config set user.name "Another Name" > diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh > index 4085340f..9ba3cd64 100755 > --- a/test/T650-regexp-query.sh > +++ b/test/T650-regexp-query.sh > @@ -137,10 +137,10 @@ EOF > test_expect_equal_file EXPECTED OUTPUT > > test_begin_subtest "regexp error reporting" > -notmuch search 'from:/unbalanced[/' 1>OUTPUT 2>&1 > +notmuch search 'from:/unbalanced[/' 2>&1 | sed -e 's/^\(A Xapian[^:]*:\).*/\1/' > OUTPUT > cat < EXPECTED > notmuch search: A Xapian exception occurred > -A Xapian exception occurred parsing query: Invalid regular expression > +A Xapian exception occurred parsing query: > Query string was: from:/unbalanced[/ > EOF This seems to lose the fact that a regexp parsing error occured. One option would be to change the actual error message so the initial predictable part of the error message contained some string like "regexp". d