From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ENSLJtQzlWBHUwEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 14:34:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EJIxItQzlWCkDgAAB5/wlQ (envelope-from ) for ; Fri, 07 May 2021 12:34:28 +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 969AE141FE for ; Fri, 7 May 2021 14:34:27 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3F1B1271CC; Fri, 7 May 2021 08:34:24 -0400 (EDT) Received: from lahtoruutu.iki.fi (unknown [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id B7EED2717A for ; Fri, 7 May 2021 08:34:21 -0400 (EDT) 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 B1ED21B00CC9; Fri, 7 May 2021 15:34:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1620390850; 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=VG2HTG50rJgANBOepYUvBPdD9TObho5bm+4sCErFFVw=; b=oiENPq0JC4xF/pH0nC4LEUX9cA6pCNbIXhefkC874ecDsOxpmJISq1V58LIScqQGxI1T2j 1dTdiQGhtW1l6a6JkLZWHjJNLk5buEskbraCxqGVW2OhJdazNdKnW1vc/mBU+7e0v18l0t gyuTn/x1pHE/69Z9AXoHvOOteLnpIOYwrml9KSWZ6vMft6/PyKDOUlvDvZcTb//6t8PvLQ TQ5f284FYZO/dY6hMM66X9H9i9PFwpU3zNxqhDx7iFac0b+nkdmbnF6sOR614wmikh7pzA PVMOdxIRSRW1+Mc9R+97Yov4HuGmjW7Lm0MVZAmYbft529eY4e0MV8QbBgyuxA== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 5/9] test: test relative paths for database.hook_dir In-Reply-To: <20210507113029.2685184-6-david@tethera.net> References: <20210507113029.2685184-1-david@tethera.net> <20210507113029.2685184-6-david@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1620390850; 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=VG2HTG50rJgANBOepYUvBPdD9TObho5bm+4sCErFFVw=; b=g7Cb1iKfwz3HCwPf2pVMmVeHYGqr2Vt2aa28+P7DWZOQ820dqAeNUVNXt7QK1sbAG/4pUw VL/rJNKCYZt+miTqOMJoHNuH0uxo/WYoNqInWI/MiRcNJGeRtDUufYAsMieEgBR/JN2Yoc ynyJXqFtqzMyynGJbqlywyPgBRzufaGwndqz7cKe3rbMyxlaiuXcQrbQLItGLbqxag66WF Qn8wEjzswRxHrd2JM6XZ3xkf3qQbN1HKN6xEy3LKjAWbTHeb9yVlaOolXMIb7vtms7ALJH iU2zFQ+oE0+l9/6D0WNFFtyOfLvcEMzygN6NNHDdjp6hzKwLgtKG0+x4Mb3O9w== 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=1620390850; a=rsa-sha256; cv=none; b=dwLrdAZN5NMG4YS3bGKIaVJKs6afrZnNU531MMZTPc/gIfA0s69XBeuJ8tlu+3EqdadSc1 uoRRo5vZsXAVkUWtPAaOUyVjbsnOsvLIOkauHMu3aOAb6DI1jmbPuc5SRHS/JTBbPv1PCc ndcMagQbv09Fh0QvencwBlgTHc4afB1NRMZb1MLTukmoT/ybB9K3+6rPgwX7OWvrc//ERk 78ft3wo6rJgQbEXTmmBcfR9WR4pMCn+avuvZYs6iD6Cdi5+A+7bvzcsLfCmLVnKYhtIqBx SxFFTBHzfIjepnuM5H0N3xUlkXH43mKmkBFimIqV23QriKHb/9egBf5mR/KUcQ== Message-ID-Hash: S3HRLCOGOROEX4WG2EHZLIFSM4IU2H5R X-Message-ID-Hash: S3HRLCOGOROEX4WG2EHZLIFSM4IU2H5R 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 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620390867; 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:dkim-signature; bh=wg4nEz41lC//PLA51NsELgZ30rmXQyW+n0l0mAyztc8=; b=N6R9Rgeh0B811dk844fwFq7QAuqD206bMVjZRNqkiM4H4vYX6Ckdh9noTUlADktsxjvUlM 5IfTehMW1Y31zVUF00W5A/kDxXMvpD/mnGGC8E3uEoc3oZPcXA6iPlCMM3SnKil2LIR24j rybkJItv2xXIy6wkqNoUwWAY8PpxWci9NhUwu6pSz98rtl0v/eh7/3fcmTgG6R5vboL1Kw gfjZFjKfKNpv7uTMi65EhTRKU1qoQ2biDNEa8WEmvgl3tL3QHeORnONAFYJqcYyeH/AgKw xBQk4+8Kl64qCnaN7Jzhpwsw4n3xA127ef6KobExvptalruIt+LDHv0NsmyPVA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1620390867; a=rsa-sha256; cv=fail; b=ETfBMnCwUw4ZRtceVZ920VAQOWFPDQMIitTdUsc2e+iVL9khmIUqk8buU667RXR+Xx/tYw RdIXXfgq6F5CJiRsg+QvLx9yHMAOSn6SqNk6mQeq0Tt/89HY3rid3VvGlgutInACUJXk6d cNp6BbdlzelbedRL9H6Js8G+eViD2EJJhrjiVUJobBLsUIKle5wbJHtGf2nxUkROqXPcEe OKQbeE5qooBWtCvWET3Ln3MisdaKyq/LOfbSuL0gV2+xTVofNTiABAVqCa+ao0eeUAd8D7 wRZesghYI68yj5sge/JOU8EZ8SOBmW2yBWKac+oS1UYVvagGETQNURHTpCOAtw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=oiENPq0J; 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-Spam-Score: 2.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=oiENPq0J; 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: 969AE141FE X-Spam-Score: 2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: enx8zjB6t83p On Fri, May 07 2021, David Bremner wrote: > --- > test/T400-hooks.sh | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/test/T400-hooks.sh b/test/T400-hooks.sh > index 3a2df2f4..00c99337 100755 > --- a/test/T400-hooks.sh > +++ b/test/T400-hooks.sh > @@ -43,7 +43,7 @@ add_message > # create maildir structure for notmuch-insert > mkdir -p "$MAIL_DIR"/{cur,new,tmp} > > -for config in traditional profile explicit XDG split; do > +for config in traditional profile explicit relative XDG split; do > unset NOTMUCH_PROFILE > notmuch config set database.hook_dir > notmuch config set database.path ${MAIL_DIR} > @@ -63,6 +63,11 @@ for config in traditional profile explicit XDG split; do > mkdir -p $HOOK_DIR > notmuch config set database.hook_dir $HOOK_DIR > ;; > + relative) > + HOOK_DIR=${HOME}/.notmuch-hooks > + mkdir -p $HOOK_DIR I'd drop the -p, to be sure $HOOK_DIR does not exist before test run (if it existed, one notices when it fails (or not, we don't fail on error :/ -- anyway noise to terminal/log (hopefully) > + notmuch config set database.hook_dir .notmuch-hooks > + ;; > XDG) > HOOK_DIR=${HOME}/.config/notmuch/default/hooks > ;; > -- > 2.30.2