X-Envelope-From: notmuch-bounces@notmuchmail.org  Sun Aug 16 14:12:32 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id 9D3E85E51F;
	Sun, 16 Aug 2026 14:12:32 +0000 (UTC)
Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 4721D5DF37
	for <notmuch@notmuchmail.org>; Sun, 16 Aug 2026 14:12:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net;
 i=@tethera.net; q=dns/txt; s=2024; t=1786889548; h=from : to : cc :
 subject : in-reply-to : references : date : message-id : mime-version
 : content-type : from;
 bh=fZlwHeswCUpsloPKJYHbWHxbZ0ncCHE1Y8KiHoJydCY=;
 b=JnvHXkfHV5c0RiyYKKxYWVFn4pKxcaHiwc2OehHSj2Bs74rx8ITrpLHC1I88PyeRhTv1x
 MukPl5ujcxFvi1K6ZNiR/2tN3mlqulA+4SL7J4fiD6oee7PpSxfy/d5gbpk+tpUkPjzrVu1
 DUIB22NZAwAb5RtwBokHAZXZJT0JcNL3c+VZ7k97FgnGEaOlaEYfI7LlFdx/wiElOQsxn+K
 wlGgV8jBmWtTljWd63aHXm0ZS95MGhmlhXSD2y+M2HreC5RvJnQThdczrliY4Nvrpb73z71
 4Gbh5Ga2a/3WJ61hEO2jUTkkYJTbipW+JcdTjGpmzTGYJdz8KNF+XF9j3MEg==
Received: from tethera.net (fctnnbsc38w-142-162-53-181.dhcp-dynamic.fibreop.nb.bellaliant.net [142.162.53.181])
	by phubs.tethera.net (Postfix) with ESMTPS id 45FCC1800F9;
	Sun, 16 Aug 2026 11:12:27 -0300 (ADT)
Received: (nullmailer pid 1610371 invoked by uid 1000);
	Sun, 16 Aug 2026 14:12:23 -0000
From: David Bremner <david@tethera.net>
To: inwit <inwit@sindominio.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH 3/3] test: add tests for --profile CLI option
In-Reply-To: <20260509155257.2477368-4-inwit@sindominio.net>
References: <20260509155257.2477368-1-inwit@sindominio.net>
 <20260509155257.2477368-4-inwit@sindominio.net>
Date: Sun, 16 Aug 2026 11:12:23 -0300
Message-ID: <874iguduig.fsf@tethera.net>
MIME-Version: 1.0
Message-ID-Hash: XGE2WBWHC2EVTBNLINUSZZYSYUTCE36F
X-Message-ID-Hash: XGE2WBWHC2EVTBNLINUSZZYSYUTCE36F
X-MailFrom: david@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
CC: inwit <inwit@sindominio.net>
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

inwit <inwit@sindominio.net> writes:
>  
> +xdg_config_cli () {
> +    local dir
> +    local profile=${1:-default}
> +    backup_config
> +    dir="${HOME}/.config/notmuch/${profile}"
> +    rm -rf $dir
I wonder if we should have " " around $dir here?
Basically if $HOME has spaces, the whole build will blow up, but maybe
extra caution for rm -rf is suitable.

>  
> +test_begin_subtest "count with saved query from config file (xdg+cli-profile)"
> +query_name="test${RANDOM}"
> +xdg_config_cli work
> +notmuch --profile=work count query:$query_name > OUTPUT
> +printf "\n[query]\n${query_name} = tag:inbox\n" >> ${CONFIG_PATH}
> +notmuch --profile=work count query:$query_name >> OUTPUT
> +cat <<EOF > EXPECTED
> +0
> +52
> +EOF

For reasons that I didn't track down, these are both failing with 54
instead of 52 for me on current master. Can you double check whether
this is a difference in our environment, or the patches just need
updating?
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
