From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iGkBNV2sA2JZFAEAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 12:58:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ALWzLV2sA2JRVQAAG6o9tA (envelope-from ) for ; Wed, 09 Feb 2022 12:58:21 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2D56E1ADB3 for ; Wed, 9 Feb 2022 12:58:21 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 883CA5F718; Wed, 9 Feb 2022 11:58:14 +0000 (UTC) X-Greylist: delayed 332 seconds by postgrey-1.36 at yantan; Wed, 09 Feb 2022 11:58:10 UTC Received: from mailproxy05.manitu.net (mailproxy05.manitu.net [IPv6:2a00:1828:1000:1110::2]) by mail.notmuchmail.org (Postfix) with ESMTPS id E08135F712 for ; Wed, 9 Feb 2022 11:58:10 +0000 (UTC) Received: from localhost (200116b8604631004d94416580d017f7.dip.versatel-1u1.de [IPv6:2001:16b8:6046:3100:4d94:4165:80d0:17f7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: michael@grubix.eu) by mailproxy05.manitu.net (Postfix) with ESMTPSA id 4B3821B607F4; Wed, 9 Feb 2022 12:52:39 +0100 (CET) From: Michael J Gruber To: notmuch@notmuchmail.org Subject: [PATCH 4/4] test: set up the outcount file for T380.1 Date: Wed, 9 Feb 2022 12:52:36 +0100 Message-Id: <0ccbe5428179bdf550d13ac715db70e78fc9a7c4.1644406756.git.git@grubix.eu> X-Mailer: git-send-email 2.35.1.306.ga00bde9711 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: 4J3AHUN63KUAD3H3JGUQEJCG6TND7FVS X-Message-ID-Hash: 4J3AHUN63KUAD3H3JGUQEJCG6TND7FVS X-MailFrom: git@grubix.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644407901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=xwQuO8JGnUYljXhYGaLXkdYg3ff81YYKo0cZftHgJD4=; b=dSHVXKxXl5dJh39pYW4NRVg5IENm6h6Ej0ycqF0SdZQa1YqRCFcOLl8pRhLiPBG0P+C+pa EvjAow3/2soZZhVza1XPePdWzUB+ZJEFMkVH3F/q5IM1K2FGmYxqtwmJOGAAL++taHXwwf SCGOG57CLSZHxH6g8qA7gwUbwEQIcw3AEGW3aKmn60cvDA+l8EAQL19ySKGkQN4zWAHWwD F4x+AGfMh33kmaCUxnBbOalyQGKbIbSkvgn68tKwxrI9IVmT+Rzx4CUOoWqcZhU3Wwuf4R VL7Xq4yjBj5FU7ZgV04IOzMHsgjpItf+7SvabEhw0VJksuQXPctLI8gfU47CfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644407901; a=rsa-sha256; cv=none; b=ROkN3nPoeyDyKsn/o/mBZmkwka3pH8pJs/GSgJ/g9yBxsihqn/Nrl3Rlb2li9r3QBin/XP eVyN+Dv5LsmM9AWyPfNXDYM/+LKvB9278Bk7l9J7J2IVzI8+0TNu58eduLWtX6KWyQ50zP bUw4Nt3+nTsDyHlqqImcQWu1I3SAIGKV9kvGI4Bew7U7c+RBLaHTa92/Ugn1Eheujunu02 G6plnp82jP/BnpMZKCXsFwn5Xtsg0uvQxWNGo8GZygTKKEXi44Z5oK0bHeE+5sXP8pDjOS BI4xEkAu8GowawKtTh6X9ahxWMq7l7hipsBywkCRFJiR8KJR31i17n1s+yf4aQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2D56E1ADB3 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2MsUNfo6jZ1H If gdb is present but for some reason `atomicity.py` fails to write to the output file then the test fails with some ugly bash errors in the wrong places (because the outcount variable is empty). Therefore, set up the outcount file with `0` to get the test script to rund and the test to fail fpr a clearer reason. Background: We noticed this with arch armhfp emulated on x86_64 in Fedora's COPR test build environment. Signed-off-by: Michael J Gruber --- test/T380-atomicity.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/T380-atomicity.sh b/test/T380-atomicity.sh index 49df5c38..caac28a3 100755 --- a/test/T380-atomicity.sh +++ b/test/T380-atomicity.sh @@ -64,6 +64,7 @@ if test_require_external_prereq gdb; then # -tty /dev/null works around a conflict between the 'timeout' wrapper # and gdb's attempt to control the TTY. export MAIL_DIR + echo -n 0 > outcount ${TEST_GDB} -tty /dev/null -batch -x $NOTMUCH_SRCDIR/test/atomicity.py notmuch 1>gdb.out 2>&1 # Get the final, golden output -- 2.35.1.306.ga00bde9711