From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GKgXKEcd+18DJgAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 15:29:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AHIPJEcd+19aFAAA1q6Kng (envelope-from ) for ; Sun, 10 Jan 2021 15:29:11 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 008AE940503 for ; Sun, 10 Jan 2021 15:29:11 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2DD8929E0B; Sun, 10 Jan 2021 10:29:05 -0500 (EST) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 49BBD29D1B for ; Sun, 10 Jan 2021 10:29:02 -0500 (EST) 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 8C8C21B00258; Sun, 10 Jan 2021 17:28:56 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1610292536; 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=y89aVgI6m45gt+pnFwPUJ65AmiJD4Tfk6uiarQ2pUyM=; b=TdVMLMPjYdRyxHGJ2ylkWn7G3V68fyXmc+s2mwIaLavn8DndcKJGWdRam7dHOaFgAryI/p 1NeIECFOjn26g8EItBQZHWzdsolha6hAZnDsxevT0kTOlfqKUALz6PZs+D8eiHlC5nDmmT 0EzJ96rNd+XN7UZ7t5yMyWDjykK2OXgpzPlYzCnLXPf2wjBw4nVh3vtc0rnh3h9JooUumQ rOAne5u20nkUTk1fCJ6NGA144p4AsqQx/hmfLXLWUGyKaI34Dscz4wLMMID8EBF3bahB8M mfdmb8nh9r3NCBERw1NxoN1HIwEaFQHj9TxK07L6H/P605+Lm2uqydl0ypDyEw== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 01/36] test/T750-gzip: don't compress the xapian database In-Reply-To: <20210103233547.122707-2-david@tethera.net> References: <20210103233547.122707-1-david@tethera.net> <20210103233547.122707-2-david@tethera.net> User-Agent: Notmuch/0.31.3+70~g95b022c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1610292536; a=rsa-sha256; cv=none; b=IrAk/magumyInUMCqVXGSpCttfy6uMiy11rSNU5kQYwCrQIGeIqrw8J6Z0jn1vGlcVmgfW iEWxaEXTmM2AGNUWQ+fQRoTakiS+fzAfFfLKp8JMDKsHz2+7PF56KJ5q+BFACC6NSDa4OH AqnJL3qOMHqfxO9APwBQstQyX4jUM/rHvquIxvpAzeFM+MsCcl+vq/InmMAKg3dIjDvOrK 0FvNUO9zeCIg++ZqTdmsPamcNllJaT7oD5B/f6ECKgvvgZP2zrMVInZMwFHZ6BRr+XnQ9n EJbdmYgeLHfPS+Ws1QZ+EBugk1j5F1R1g67fOju86x8Sy9lIcVcC1NsUlNQerA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1610292536; 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=y89aVgI6m45gt+pnFwPUJ65AmiJD4Tfk6uiarQ2pUyM=; b=M0Ir6cLc0/0MdPaEIC+kCY1VSS44e+Ecs2qdk1zbEcgTZhMFuTO+ACc714Y21PqclQzZ4q qj9ITSBUJmVQsUABQQbGTNyBHfDuNRtXpiOxq8mI2qBvJdlSxe+JdUoizaxsyskFpZxhyE Ur9/VOLqC8Mq3t/Wg2yt3vnSTTNW4AmVOXRzZHC2zg+lPnP3Fzl31OHkUP6IoO4hcx0jG8 F7LcwotgpKji9hc/5MEtLufgDZMfF+wWfzlOImCQU1Tpp7OKn4+jtqM0TS7lvZtvs+HY5z NCQIc3E6vwTteXKoiiczR7/uOZmf/jyx3NZujKpgvUl5wzmiEFxKukAN/3Wrqw== Message-ID-Hash: MCF3V73KGNZJSYPTE74UZ4GLRBIHZ7KT X-Message-ID-Hash: MCF3V73KGNZJSYPTE74UZ4GLRBIHZ7KT 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=TdVMLMPj; 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 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 008AE940503 X-Spam-Score: 0.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: D6WNkmB0ouu7 On Sun, Jan 03 2021, David Bremner wrote: > This causes mysterious failures in trying to detect if a database > exists. > --- > test/T750-gzip.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/T750-gzip.sh b/test/T750-gzip.sh > index fac41d39..807086fd 100755 > --- a/test/T750-gzip.sh > +++ b/test/T750-gzip.sh > @@ -171,7 +171,7 @@ test_expect_equal_file EXPECTED OUTPUT > add_email_corpus lkml > test_begin_subtest "new doesn't run out of file descriptors with many gzipped files" > ulimit -n 200 > -gzip --recursive ${MAIL_DIR} > +find ${MAIL_DIR} -name .notmuch -prune -false -o -type f -exec gzip --recursive {} \; (some extra spaces above) The point of -false is that if there exists .notmuch which is file, then include it ? (w/o -false the -o part is not included as -prune is true). I'd suggest find ${MAIL_DIR} -name .notmuch -prune -false -o -type f -print0 | xargs -0 gzip -- (w/o -r (no-run-if-empty) as it is gnu extension according to xargs(1) man page) > test_expect_success "notmuch new" > > test_done > -- > 2.29.2 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org