From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 MHWZJSApBGLRCAEAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 21:50:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yC/qIiApBGKhlQAA9RJhRA (envelope-from ) for ; Wed, 09 Feb 2022 21:50:40 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 481E32A523 for ; Wed, 9 Feb 2022 21:50:40 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5D0005F714; Wed, 9 Feb 2022 20:50:39 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 273405F711 for ; Wed, 9 Feb 2022 20:50:37 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 8F2B81B0001D; Wed, 9 Feb 2022 22:50:36 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644439836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C2XzyRfDaUE3KT3tlFsO6Hj+MfG+5cMTRe+PS68YYSk=; b=F1P42OnKZC97eLWehlX92Z6u5xv3yg6fkcC9iIzMM1fxoFwxCEdPEdQFSEyymXGfqhfRrT a4a3loZdlckzO5/mBcl4we0Qbx5YoF+34f8R8kjPdfrCPAL+oiCrNbRa4VBXuPNztapTGR l1to4Onx2kElRbwjJrzi1FTv3vHL/MjnTf86TAM9q3Imaiuuw38pv6ZvsR/ASuAmlV3MUL K64gFWMov+5DQzVMCqzPHqic5uCBw1Ex0cM4/2HQ91amR2slpRA6buAd66S5beVIx+ytD3 kCS88WgpGvOhNVvncfCwq/v8XvOrajsVhkKIdVIv/2xwyrxyV3uB0hbIJa65yA== From: Tomi Ollila To: Michael J Gruber , notmuch@notmuchmail.org Subject: Re: [PATCH 4/4] test: set up the outcount file for T380.1 In-Reply-To: <0ccbe5428179bdf550d13ac715db70e78fc9a7c4.1644406756.git.git@grubix.eu> References: <0ccbe5428179bdf550d13ac715db70e78fc9a7c4.1644406756.git.git@grubix.eu> User-Agent: Notmuch/0.35+4~ge2bb4cd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1644439836; a=rsa-sha256; cv=none; b=bBFFYeVqmK1Y0yuBfP73cKKqzbGNTZuXwzG6frH0TarqZ8kxzKMcZePxBFs7AigndPH4zT bfxTtDLg0qSC5ddVZY59HTCCv+mdknJ/l/JBXL5Gt658gvkykA7Bf3tIwIjL6YqbW9QMRx qftsNSVMJ4MGcXeHtw7ZKm8DVMxHdQ4U71O3C2CUZ5vXWEslmYqmRUHk23iTyG43SjpkgP 224WZmRMA4vjGAsed/gU+O84vXvhvuhDHeTZjpCXHPQZoS0bZa+LOlWKxpB+ugnF+kMbzq znQZRpIO8dI6Gl6TvttNGbQWIhlTgtzjKI/eQJBDMhcGjOD5pZI2lToNpCA85w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644439836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C2XzyRfDaUE3KT3tlFsO6Hj+MfG+5cMTRe+PS68YYSk=; b=NfOfq7Yi39Dj2KsSbZNTOeDbX1VMZL0lEBcBvmVl+Ztupdq0gtRaSkJRZ9xfsJnvPPM0wd wxVN74+EK5psu+4zy8X+HFe7pfwdg/T0vFzqxsBk/LHd6MBDD7zHo7GzySNwO+femhzFgj 8EuoKegPMLkXBrdN2zRCoIHu8hKhLeLwCNd5Qd5Dv0x2g8yTcOjHCcR5T2B/NzJgJC3Vwf isHNMIJbGmz+i4rXYr6WXpnoVL11YesEo7OQpS/qFkzIq9xrauug013tEu+RcZLCM2BhFU El2fz7M0Ed/bMY6qfYX4pcy06r/CEKMKpcON4JfMdtK+K0FodFVA3imsIs31lw== Message-ID-Hash: LUZ2R3CBQVZURDXBFZMKAOC2FUB3VVBL X-Message-ID-Hash: LUZ2R3CBQVZURDXBFZMKAOC2FUB3VVBL X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644439840; 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:dkim-signature; bh=Ea/elCkc15PVddf8s1fuYB5Gh6o3+tudWBWVSy8CRzQ=; b=fvJRt6wg5KYtS0isRoi9HyPBtvO8sXO6h6WNjJQVODzmL8+lPu6dnA78TDq2wfCZ2BaF2L Dxqvqcmhn6luGW8lLeOvRpVVgioqaUMQtDgccpKuQYhl4/us1p+uOjcvODDUKobkeYFruL yl3EYWEEECf/ZIC4fZGRxzHRp4hU3M076YUSwdTl88Ids5aeeFW4plFIculIus1KuU4XHP BwpasSk7QC8GZEs9kpgc5l8/c46haWtau8Rk2wxN64D0+qm43rgoUToqt1GyBCw/rUEiRd 5qtIhlJnkVLAWL4nhHENaGZ+fFUvEy+9kMVBOyKEMLWtEuPWCe4f6eF7mTDvcA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1644439840; a=rsa-sha256; cv=fail; b=lrAtpYW67iioX2aMVdp04DiVTdlmL0PasWwgmCV5lLfvKa/zaa7PQ7iETpvsYYY5VekmYH cwCXgV8c7A6kfQXrHI6qUVZtbzKWLupv2cFYXjfyNQ7oB6zdrFi2LBIxj7AH0cYTA3p2h9 GiqsO2Z/23RUAxD79xuU78N3pPld9qvhVpsw85Mgs6020Uicvr9lB8GnQHl9FibvrSLy4b Gzw6rEeYb1cieWDD9CeF47+gxlyYoghz0ENX+nL/osZZpumyfAAWyZJbOItrEV0tqZA2bc gKvajL9Ud/XOS3ixBkigWZv/ZqI5uKVtuMYj97nLu1xRoCbma+LASfH1DH1Afg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=F1P42OnK; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=F1P42OnK; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 481E32A523 X-Spam-Score: -1.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: qemwgaH5XAm4 On Wed, Feb 09 2022, Michael J. Gruber wrote: > 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 printf 0 > outcount (is my suggestion) > ${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