From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 yJwGA+AB5mGAmAAAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 00:55:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id JopeO98B5mGITAAAauVa8A (envelope-from ) for ; Tue, 18 Jan 2022 00:55:11 +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 B3C0E20E29 for ; Tue, 18 Jan 2022 00:55:11 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4B8BE5F524; Mon, 17 Jan 2022 23:55:07 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 455775E016 for ; Mon, 17 Jan 2022 23:55:04 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 8FAA25FC01; Mon, 17 Jan 2022 18:55:03 -0500 (EST) Received: (nullmailer pid 2735641 invoked by uid 1000); Mon, 17 Jan 2022 23:55:02 -0000 From: David Bremner To: Ian , "notmuch@notmuchmail.org" Subject: [PATCH 1/2] test/setup: add known broken test for single items Date: Mon, 17 Jan 2022 19:54:52 -0400 Message-Id: <20220117235453.2735624-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <6O3LTUhoXlrnkPWCtPJCP4cagU7mFVEdyTpcC_37BoSzStlARXDBa7oczy6hB0jyjGjBQvgj_jFV58cw0aNx-jUg1h1O-FQ7820k68C0X4M=@protonmail.com> References: <6O3LTUhoXlrnkPWCtPJCP4cagU7mFVEdyTpcC_37BoSzStlARXDBa7oczy6hB0jyjGjBQvgj_jFV58cw0aNx-jUg1h1O-FQ7820k68C0X4M=@protonmail.com> MIME-Version: 1.0 Message-ID-Hash: VR3T6IDHLVES2KSYHYR2B5VA7QZHDXW4 X-Message-ID-Hash: VR3T6IDHLVES2KSYHYR2B5VA7QZHDXW4 X-MailFrom: bremner@tethera.net 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=1642463711; 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=uiXg3gA81VLLzT3ZPzNux+vpBOOu/K/rlX5s5nGEuh4=; b=Gvz5P+9Z8C+an9U6Zp/R8h6F0oHwbSQAFBpjA+ILHB1/3iizJEpPFbHy9MEiWVrLH/GGFt 9Xg8eWvDPyz6m6Y5rqzlGCb0xZDVRoFX5M76dYSaIZdij3XBGDw0eGvszANjeAyI6QQHcJ eZdHvTj0AAcU608Dlxe2VZPFrv3+aYCz1Z/i78bwB+z0jZD9DmaO5UtlYR4YCFce4ED8Jc ecPsrVR0Ppx/XIX3jREl5W8laS8J0/RHrf728hdPKAZKjU8SZ8gjOPsFY0NX4FdFzvMMQo +HCJAhMfeqSH57lBaxbpLgW/nGXS86yaTAkxLaoNVta21n2r74M2shhtzx8QIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642463711; a=rsa-sha256; cv=none; b=tqs8ub5EZ0Hh3UZKG9TjFr4Yoy2S+97RDKrG0xiJqyhaOyxSeL26mvELDJRwdDbhI65Wfc BtD+v4ZiRGqL/j2AUaCTA+NFjnRD5ikqnl4kTEoh3KsTfAoo1auqP5R6p/siOLWxoM/GHH ulhKKMfTrXv0gkt6MrUGD54sAsS63hfZHPNi2QRlnt1sWHr2AGMYROAhx6kSoa6brgcWrK bea3Ib74cZVLJL5cDJiiZev8oSiPgKHAbnpynkjKd0xoJcJ2izY59QdUhQU4LK5Fge7xR5 f6uOUI1z865Z2P88GIsLIL74gD3FgrrzZmgrBjlICsHkB+D5++Sr80mKphvDRw== 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: B3C0E20E29 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: LAkHh9c9DYkQ In [1] Ian observed that notmuch setup was inconsistent with notmuch config set when adding single items, namely adding an unneeded semi-colon at the end. This test replicates that bug. [1]: id:6O3LTUhoXlrnkPWCtPJCP4cagU7mFVEdyTpcC_37BoSzStlARXDBa7oczy6hB0jyjGjBQvgj_jFV58cw0aNx-jUg1h1O-FQ7820k68C0X4M=@protonmail.com --- test/T040-setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/T040-setup.sh b/test/T040-setup.sh index 42c621c8..36a42562 100755 --- a/test/T040-setup.sh +++ b/test/T040-setup.sh @@ -23,6 +23,14 @@ EOF expected_dir=$NOTMUCH_SRCDIR/test/setup.expected-output test_expect_equal_file ${expected_dir}/config-with-comments new-notmuch-config +test_begin_subtest "setup consistent with config-set for single items" +test_subtest_known_broken +# note this relies on the config state from the previous test. +notmuch --config=new-notmuch-config config list > list.setup +notmuch --config=new-notmuch-config config set search.exclude_tags baz +notmuch --config=new-notmuch-config config list > list.config +test_expect_equal_file list.setup list.config + test_begin_subtest "notmuch with a config but without a database suggests notmuch new" notmuch 2>&1 | notmuch_dir_sanitize > OUTPUT cat < EXPECTED -- 2.34.1