From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CM3tHtbeK2E7RQEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 21:24:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qDM8GtbeK2EZHAAAbx9fmQ (envelope-from ) for ; Sun, 29 Aug 2021 19:24:06 +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) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 323AB16D57 for ; Sun, 29 Aug 2021 21:24:06 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F33881FB71; Sun, 29 Aug 2021 15:23:53 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id F35A41FB5A for ; Sun, 29 Aug 2021 15:23:48 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id E8BF05FD5E; Sun, 29 Aug 2021 15:23:48 -0400 (EDT) Received: (nullmailer pid 4192498 invoked by uid 1000); Sun, 29 Aug 2021 19:23:39 -0000 From: David Bremner To: David Bremner , Tomi Ollila , Matt Armstrong , notmuch@notmuchmail.org Subject: [PATCH 7/9] test/emacs: test for notmuch-show with nonexistent CWD Date: Sun, 29 Aug 2021 12:23:33 -0700 Message-Id: <20210829192335.4192305-8-david@tethera.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210829192335.4192305-1-david@tethera.net> References: <87tvgqzq1o.fsf@tethera.net> <20210829192335.4192305-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: XWHMUXXTHK7XKTQROFZBIAAPVCVWYZL7 X-Message-ID-Hash: XWHMUXXTHK7XKTQROFZBIAAPVCVWYZL7 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; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630265046; 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-unsubscribe:list-subscribe:list-post; bh=2qHdIlfdrpIIfdnaqVB92YBVwvqwVAboi1l8z5nvdhA=; b=TEnLs56TC/i2i23RgP3NwD/9+C+wVwVTDbOR5tfwUtHjE8FvIkaKpd8msQDQ6oy5YzX6p1 3jcZfYmM46gioDLD5O+1SeRfDlGjKM7dEJMbrrX7/+vYfziDhtLmNXdGCp8pStsLTAUR+u 9hGtUmB3WyOzkduiSytScKiH8M9eI2aDeBVH7StjzJQ12zBbcKZRtaARBxsQ15UCUvsZt9 KEtydLAAK+SOek8XY+GVux7wN0zLFoWL95fll0PTVb2ES2W0ArpNlnoduIOX+fcb45eDzr OKljExRH9YErmAZpQzPr3pt12KPQLjXIqWuBmb0ZOAAfrmplJkZ9bNCsOJ+49Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630265046; a=rsa-sha256; cv=none; b=R9d9G6xuvx+83jQWXaSTrfTAGY79W0cHjpK9/Vma+x7mZDrRdQDWqCoXE1oUEZeqHAbE9/ LL0vRtiUPyidrKJAIFBprmvktXlw0P7Y5YemXdoEdeMW8HpM6NeOQdtkNGmMmkUxSY1ObS oIV4B2G/2d2ql5DVUj62ISnF3YIXjRh5fuGfGVnFaHe010zP3XJxX+gRsKswRtQGuhqz/a HKfxQEuqwGMoEc2Zy27bna5KmDhMMOU+cZJu8Oj57uxzHGQYzZn5FqA08KQLvG2NcgJ/eA /vNz7o9k7n0ES5oFUJuN7hgq+WD/QFnhS6E6cOyq6fDNn68lsE5j4AzNYlQn0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -1.05 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 323AB16D57 X-Spam-Score: -1.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: gqjmjMCo+daX Somewhat predictably, the other code path in notmuch-call-notmuch--helper also needs to be fixed. --- test/T450-emacs-show.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index a750cc4d..05e3692e 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -230,4 +230,12 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) (test-visible-output))' test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message-no-crypto OUTPUT +test_begin_subtest "notmuch-show with nonexistent CWD" +tid=$(notmuch search --limit=1 --output=threads '*' | sed s/thread://) +test_subtest_known_broken +test_emacs "(test-log-error + (let ((default-directory \"/nonexistent\")) + (notmuch-show \"$tid\")))" +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done -- 2.33.0