From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IPNEOb+Lx2FhWAAAgWs5BA (envelope-from ) for ; Sat, 25 Dec 2021 22:23:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sNr0NL+Lx2EURgAAB5/wlQ (envelope-from ) for ; Sat, 25 Dec 2021 21:23:11 +0000 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 B29DCE21C for ; Sat, 25 Dec 2021 22:23:11 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9EDCF5F720; Sat, 25 Dec 2021 21:23:06 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9BB6D5F71B for ; Sat, 25 Dec 2021 21:23:03 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id CE35C5FC42; Sat, 25 Dec 2021 16:23:02 -0500 (EST) Received: (nullmailer pid 3302558 invoked by uid 1000); Sat, 25 Dec 2021 21:23:01 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH 1/2] test/new: add known broken test for missing xapian directory. Date: Sat, 25 Dec 2021 17:22:55 -0400 Message-Id: <20211225212256.3302545-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <87a6h3xsir.fsf@tethera.net> References: <87a6h3xsir.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZRDJEHFOSGI4BYOCWTQZZA5J53ASP3IO X-Message-ID-Hash: ZRDJEHFOSGI4BYOCWTQZZA5J53ASP3IO 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=1640467391; 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=8YnOWca/nUFfu+1pkV+TMk7abgZKeCuIuImsGotTWSY=; b=FZjMJck+bPfoOKPDJUXcna0QIxcE373+3Gvl3VoxSEhzqUVPZF2TQRmlCI4FuTEkP/X68j 6AwW9Iqy8DZ/ZaqtRjBBwAL5xgxXcjMjYf4YT2JLhfemeqfkvhYTan2LkNnOSsP0EzzyvV 6U1I5bkOzum9Oklpii54PY2YB4KwnFOENDahMkT0mhPFdDfYEnMQZedq4PGI5b0IIWNywz 6uAw6C8mEqRhi+5+6OqZlKchJ6XUy707nrT1v5TnnRIudx5dEKUqqiA0NwnVT8HlCyDUor 5NtxhmTUiWHlMbb9nzKAXSOAZE1Y8L1s667YRq8JysrBCgq5ay0F39giKAk6AA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640467391; a=rsa-sha256; cv=none; b=FD3wZ5ch37Vgs/m/+OzrX9hjdPyZQVVUBCKAp1y9S8Kb1ktbePygOtdVLidC/t8MHwEalw Dzg5S0UUaKKS5Cwlo9YFWPnS1et3ZOHCC28W6kWf/ObBqyt3rQ55wxCceJdYgAp89LBPNe tVNczE6gA+KGeLjlsAm5wAMiVQbbH5HkEI2VsxaryA+gNMlolV/QKXdBHbeta5/ZBpMP4u HbVYYrLyaIDRbaoJ3HWynYDI2ZWuSkFqxwgcbr4mgZM0Fs4BHDq8TeCpvapRzxw/aNN5eJ YHboosslpjCfhgfMPTTn+dGhCnvDZbtaHDHgFH8YgJisLejy76qHnCQQtc7mFA== 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.17 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: B29DCE21C X-Spam-Score: -1.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: Oy/uoinVeamQ `notmuch new' should go ahead and create the xapian database if it is missing, even in the case where the parent .notmuch (or equivalent) directory exists. --- test/T055-path-config.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index f0ce55da..374aea3b 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -318,7 +318,15 @@ to=m.header('To') print(to) EOF test_expect_equal_file EXPECTED OUTPUT - ;& # fall through + ;; + *) + backup_database + test_begin_subtest ".notmuch without xapian/ handled gracefully ($config)" + test_subtest_known_broken + rm -r $XAPIAN_PATH + test_expect_success "notmuch new" + restore_database + ;; esac case $config in -- 2.34.1