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 2E5BF6DE0F3B for ; Sun, 10 Mar 2019 09:42:10 -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 rrglUegpDyTN for ; Sun, 10 Mar 2019 09:42:09 -0700 (PDT) Received: from wp260.webpack.hosteurope.de (wp260.webpack.hosteurope.de [80.237.133.29]) by arlo.cworth.org (Postfix) with ESMTPS id D17226DE0240 for ; Sun, 10 Mar 2019 09:42:08 -0700 (PDT) Received: from p4feafd35.dip0.t-ipconnect.de ([79.234.253.53] 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 1h31WY-0004D2-9N; Sun, 10 Mar 2019 17:42:06 +0100 Received: by deneb.skynet.aixah.de (Postfix, from userid 1000) id BF4CAC0305; Sun, 10 Mar 2019 17:42:05 +0100 (CET) From: Luis Ressel To: notmuch@notmuchmail.org Subject: [PATCH] test/T030-config: Separate stdout and stderr output Date: Sun, 10 Mar 2019 17:42:02 +0100 Message-Id: <20190310164202.4798-1-aranea@aixah.de> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;aranea@aixah.de;1552236128;0faabb79; X-HE-SMSGID: 1h31WY-0004D2-9N 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: Sun, 10 Mar 2019 16:42:10 -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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/T030-config.sh b/test/T030-config.sh index f36695c6..9404390b 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -43,7 +43,9 @@ 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 2>OUTPUT-ERR | notmuch_config_sanitize > OUTPUT +echo "====" >> OUTPUT +notmuch_config_sanitize < OUTPUT-ERR >> OUTPUT if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then config_gpg_path="crypto.gpg_path=gpg @@ -51,7 +53,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 +66,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.19.2