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 D59C36DE104E for ; Mon, 11 Mar 2019 10:15:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 KY1UjVH6I_TK for ; Mon, 11 Mar 2019 10:15:05 -0700 (PDT) Received: from wp260.webpack.hosteurope.de (wp260.webpack.hosteurope.de [80.237.133.29]) by arlo.cworth.org (Postfix) with ESMTPS id AC93B6DE0F74 for ; Mon, 11 Mar 2019 10:15:05 -0700 (PDT) Received: from p508bc35c.dip0.t-ipconnect.de ([80.139.195.92] helo=deneb.skynet.aixah.de); authenticated by wp260.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1h3OVx-0006xS-HZ; Mon, 11 Mar 2019 18:15:01 +0100 Received: by deneb.skynet.aixah.de (Postfix, from userid 1000) id CCB4FC02F8; Mon, 11 Mar 2019 18:15:00 +0100 (CET) From: Luis Ressel To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test/T030-config: Separate stdout and stderr output Date: Mon, 11 Mar 2019 18:14:48 +0100 Message-Id: <20190311171449.28507-1-aranea@aixah.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;aranea@aixah.de;1552324505;a3c31d72; X-HE-SMSGID: 1h3OVx-0006xS-HZ 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, 11 Mar 2019 17:15:06 -0000 POSIX doesn't specify the flushing behaviour of the STDOUT stream, so it's invalid to assume a particular order between the stdout and stderr output. The current test breaks on musl due to this. --- test/T030-config.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/T030-config.sh b/test/T030-config.sh index f36695c6..eba2e0e7 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -43,7 +43,8 @@ notmuch config set foo.nonexistent test_expect_equal "$(notmuch config get foo.nonexistent)" "" test_begin_subtest "List all items" -notmuch config list 2>&1 | notmuch_config_sanitize > OUTPUT +notmuch config list > STDOUT 2> STDERR +printf "%s\n====\n%s\n" "$(< STDOUT)" "$(< STDERR)" | notmuch_config_sanitize > OUTPUT if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then config_gpg_path="crypto.gpg_path=gpg @@ -51,7 +52,6 @@ if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then fi cat < EXPECTED -Error opening database at MAIL_DIR/.notmuch: No such file or directory database.path=MAIL_DIR user.name=Notmuch Test Suite user.primary_email=test_suite@notmuchmail.org @@ -65,6 +65,8 @@ foo.list=this;is another;list value; built_with.compact=something built_with.field_processor=something built_with.retry_lock=something +==== +Error opening database at MAIL_DIR/.notmuch: No such file or directory EOF test_expect_equal_file EXPECTED OUTPUT -- 2.21.0